What do you use as width on your main container? pixel, or %?
Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
it wil help if you paste your code here. You need to define width for the main body
Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
OK, For your body, you need to define a width, either in pixels, or in % or em. I think in your case, use 100% You need to create a div for this, say you call it bodyContainer Then you need to place everything inside this container tag.
You have currently:
body{ padding:0px; margin:0px; background:url(../image/tw.gif) no-repeat ;float:left; }
You can ad to above:
body {
text-align: center;
position: relative;
}
Then create div #bodyContainer and ad width and height to it, like so:
#bodyContainer {
width: 100%;
height: auto;
position: relative;
margin-left: auto;
margin-right: auto;
}
Then, your html should look something like:
<html>
<body>
<div id="bodyContainer">
<!-- Then place all of your content inside of here and position it absolutely. -->
</div>
</body>
</html>
Hope this helps
Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376