Hello,
while designing my website, I used div tags to contain elements of my website. I have my body, the a container for everything, then a container for everything except the header and footer, and then a container for the content.
So the layout would look something like this.
<body>
<div id="container">
<div id="header">
</div>
<div id="contentContainer">
<div id="mainContent">
</div>
</div>
<div id="footer">
</div>
</div>
</body>
If you have access to firebug for firefox or google chrome dev tools then one can see the divs and what they contain on my site (http://mysite.com/…)
So when the page is loaded the content (introduction paragraph) seems shifted to the right. In other words, it is as if the div which holds the dock, on the left, the content, and the iceberg.png background, which is identified as “contentContainer” is centered.
This div tag contains more than the container and it seems centered; thus, shifting my content, which is inside it, to the right.
Could someone please help me style my div tags so that only the container which holds the content, id=“mainContent”, is centered. and then if one’s screen resolution is not big enough then one would have to scroll left to see the lifesaver and vertical dock, or right to see the iceberg and flag.
It should make more sense if one visits my site
I hope i made my issue clear and hopefully someone can help me position my content in the centre.
Please repky with any questions, comments, concerns, or explanations, as well as solutions
Hear from you soon and thanks in advance,
Regards,
Team 1504