Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 6th, 2011, 03:36 AM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Default Width for page setup in css

Greetings,

I wanna ask that what is the best unit (% or px or anything else) to select for page and any other element so that it fits to every monitor screen?

Also what is the best unit (px or em or anything else) to select for text size?

Thanks.
 
Old July 5th, 2013, 03:51 AM
Registered User
 
Join Date: Jul 2013
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

You should use % of fluid layout and px for fixed layout. Base on your choose.
 
Old March 5th, 2015, 08:52 AM
Registered User
 
Join Date: Feb 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Report

i have some reason for personal. so recently i could not submit any post
 
Old February 1st, 2018, 07:01 AM
Registered User
 
Join Date: Jan 2018
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

You will have to use % and px as units of measurement for pages and other elements like divs and other related elements.

You need to use % for responsive layouts. But still, using px units will be required for some cases.

It is better to use em for texts. Usually 1 em is 16px unless the developer or user specifies a default font size.'

Developer can change this default value from 16px to anything he/she wants by setting the font-size for body selector in the CSS.

Users can change the default browser font-size in the browser setting.

So if you use em for fonts, it will be good for the users. They can increase the font size very easily without zooming into the page.

Regards

Pavithra Ramesh
Spidergems





Similar Threads
Thread Thread Starter Forum Replies Last Post
Width for page setup in css sophia BOOK: Beginning ASP.NET 4 : in C# and VB 3 November 9th, 2011 01:59 AM
background image width through CSS problem inOpera iamrakesh22 CSS Cascading Style Sheets 0 May 31st, 2007 06:09 AM
CSS for fixed width li and right aligned text echovue CSS Cascading Style Sheets 2 March 12th, 2007 02:21 PM
Dynamic Page width bmurphy BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 January 16th, 2006 04:56 PM
How to Increase page width rajukurian Crystal Reports 2 June 10th, 2005 01:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.