|
|
expandable pages?
|
|
|
|
Senior User
Join Date: Feb 2005
Location: Mississippi
Status:
Offline
|
|
Hey guys I did a search but turned up nothing. I know somewhere we talked about pages that were expandable to the users resolution. I was wondering if you guys knew how to do that or if you could provide a link to a tutorial. I did a google search but most them were trying to sale something to do with css or they were css generators.
thanks guys
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status:
Offline
|
|
you can set your css elements sizes to the em unit, which is based on the current set font size. If a user scales their font, the elements scale as well.
|
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
Well, by default pages do expand to the users resolution. Pages only don't do it when they're made "fixed width", but you have to go out of your way to achieve that by explicitly setting a width.
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Oct 2002
Status:
Offline
|
|
Originally Posted by iranfromthezoo
Hey guys I did a search but turned up nothing. I know somewhere we talked about pages that were expandable to the users resolution. I was wondering if you guys knew how to do that or if you could provide a link to a tutorial. I did a google search but most them were trying to sale something to do with css or they were css generators.
For your whole site to behave how I think you want, define everything in em units instead of px or pt. Not just text, but image widths too.
|
BayBook (13" MacBook Pro, 2.4GHz Core 2 Duo, 4GB RAM, 1TB HD) // BayPhone (iPhone 4, 32GB, black)
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
What do you mean by "expandable"? Are you talking about pages where the user can resize the text freely? Any page can do that on most browsers (though sadly, not IE). For IE, you just have to be careful to never define your font sizes in px or any other "absolute" size; only use em, ex, and %.
Or are you talking about pages where parts of the layout (the main column of content, for example) expand to fit the user's window? In this case, the trick is to never define the width of the areas you want to be expandable: you can use margins and padding, and even min-width and max-width (though these two don't work right on IE), but don't use width.
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|