Note: problem resolved: you can view the post: http://www.webmaster-talk.com/css-fo...tml#post749770 courtesy of LadynRed - Thanks!
Hi
So I decided to jump on the web designing after years of just graphic design. I use to build websites on tables but the whole CSS compliant thing scared me off but now that I'm serious about my I.T. career again, I've decided to learn CSS and here I am building my first CSS/XHTML layout.
I've spent all day sunday on this problem and still no luck. Checked out many CSS sites and found various methods but none work.
I have a container and in this container is:
Code:
#cntr {
width:780px;
height:780px;
position:relative;
margin:0 auto;
padding:0;
border-left: 1px solid #fff;
border-right: 1px solid #fff;;
}
Website to look at is: thai fight dot n e t
The homepage: It goes 780px down (the white borders) which is nearly correct and could be amended by adjusting the 780px to 790px but the problem here is that if you click on GALLERY (top navigation) you will see that 790px will not resolve the problem on this page.
Now, I researched on the net and tried replacing the 780px value with 100% but that didn't work. I read that the 100% value needs to be a slave value to the BODY's height value so I added a height value of 100% to the body's selector but this didn't work either, the borders simply disappeared.
I tried going to csszengardens and having a look at layouts which may have a left-right border so I can see the code but found nothing.
Any idea?
Thanks
Last edited by StylaStyla; 07-09-2008 at 08:05 PM..
|