Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 4th, 2011, 01:53 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile 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 wrapper 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 November 5th, 2011, 05:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You're better off asking this in a dedicated CSS forum as you'll get more viewers and better replies. http://p2p.wrox.com/css-445/

You may also want to search Google for something like "liquid design" which is a concept used to create sites that adapt to the screen width.

All in all, it depends on what you're designing or what for. Sometimes a fixed width makes sense, sometimes a liquid design.

Cheers

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 6th, 2011, 03:35 AM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile

Hi Imar,
Thanks for link and introducing me to new term "liquid design"
 
Old November 9th, 2011, 01:59 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

Hi sophia,
You should consider some idea in your design :
1- If you use percent instead of px your page probably end up with screen size in every PC or Mobile phones . But you should consider if a user minimize browser window, your page maybe miss it's design.
2- If you use pixel instead of percent, Elements in page stick to its position.
I hope it help you.
__________________
Please excuse me for poor and bad English.





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
DetailSection and page width Nellie Crystal Reports 1 June 7th, 2006 01:55 AM
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.