Forum Moderators: phranque

Message Too Old, No Replies

dimension

         

jamiecg

10:45 pm on Aug 12, 2007 (gmt 0)

10+ Year Member



I am kind of new at the whole web designing stuff. I chose to go with a smaller resolution. I use free software and I cant manage to get any dimension to fill the page

rocknbil

6:38 am on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



welcome aboard jamiecg, try 100% or 95% with margin: auto to center the main content on the page.

<style type="text/css">
#main { width: 100%; margin:auto; }
</style>
....

<div id="main">
content
</div>

If you want "no margin" so the content truly goes up against the edge of the window, you will have to zero out the page margins:

<style type="text/css">
body { margin:0; padding:0; }
#main { width: 100%; }
</style>