HighDots Forums  

keeping page content centered at different window sizes

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss keeping page content centered at different window sizes in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pik80
 
Posts: n/a

Default keeping page content centered at different window sizes - 11-28-2007 , 12:56 AM






I know there is a way keep your site's content centered no matter what the size
of the window is. However I am having a terrible time try to find it in my work
books and under the help menu. Anyone know how to do this?


Reply With Quote
  #2  
Old   
MikeL7
 
Posts: n/a

Default Re: keeping page content centered at different windowsizes - 11-28-2007 , 01:59 AM






Use a div, then in the style set a width say 80%, then have margin-left:auto;
and margin-right:auto; in your stylesheet. There are other ways but this is
simple and i think its W3C compliant.
<body>
div id="wrapper">
CONTENT
</div>
</body>

Then in your CSS:
#wrapper {
width:80%;
margin-left:auto;
margin-right:auto;
}


Reply With Quote
  #3  
Old   
pik80
 
Posts: n/a

Default Re: keeping page content centered at different windowsizes - 11-30-2007 , 11:54 AM



Thanks for the help. I'll give it a try once I get a chance.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.