Log In · Register

 
how to make your site pages adjust to the viewers display??, been trying to figure this out for awhile...
rubicon
post Aug 23 2006, 02:32 AM
Post #1


Senior Member
***

Group: Member
Posts: 56
Joined: Aug 2006
Member No: 454,246



what actually has to be done coding wise to make sure that your site page(s) will adjust to the user's display size?
 
 
Start new topic
Replies
BonneVache
post Aug 23 2006, 07:21 PM
Post #2


Good Cow.
****

Group: Member
Posts: 180
Joined: Aug 2006
Member No: 449,486



It is possible, if you're talking about what I think you are.

Its called a "liquid" layout. By setting your divs' width to %'s not pixels the page's content will expand to keep a constant percentage of the page used.

Example would be....
CODE
#my_magical_div {
width: 50%;
}
#Socks_smell {
width: 50%;
}


Using that stylesheet the two divs, when placed into your page, will each expand to hold 50% of your screen real-estate. (your %'s don't have to add up to 100 by the way, any more than 100 and you'll have a horizontal scroll any less and you'll just have white space.)

EXAMPLE!

Is that what you mean? Maybe? Perhaps?
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: