CSS Layout Help — Make the gaps stop!
Ok. Here is the url for the page :
[URL=http://cdxrevvved.mine.nu/web/ecommerce/testlayout2/test2.htm]PAGE LINK
Now, I cant preview in any browsers right now (work) except netscape 4.7 and IE 5.5 … But when previewing in IE, I get these gaps in between my columns! They should line up properly with them totaling 100% width..
If you want the rest, just view the source on the page..
WHY are these gaps there and HOW do I make them go away? I’d hate to start using tables again… {grin}
The code is below…
CDXRevVveD
<style type=”text/css”>
body {
background-color: silver
}
#positioned-element
{
background-color: red;
height: 115 px;
left: 0px;
position: absolute;
top: 0px;
width: 100%;
z-index: 1
}
#positioned-element1
{
background-color: pink;
height: 20 px;
left: 0px;
position: absolute;
top: 115px;
width: 100%;
z-index: 2
}
#positioned-element2
{
background-color: blue;
height: 400 px;
left: 0 px;
position: absolute;
top: 135px;
width: 20%;
z-index: 3
}
#positioned-element3
{
background-color: white;
height: 400 px;
left: 20%;
position: absolute;
top: 135px;
width: 50%;
z-index: 4
}
#positioned-element4
{
background-color: gray;
height: 400 px;
left: 70%;
position: absolute;
top: 135px;
width: 30%;
z-index: 5
}
</style>
[i]Originally posted by cdxrevvved [/i]
If you want the rest, just view the source on the page..
[/QUOTE]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd ">[/QUOTE]
[i]Originally posted by cdxrevvved [/i]
[B]my only prob is its at the top of the page.... how do i make it the last element on the page.. I know the three columns in the middle with ALWAYS be of varying height, so I cant just say put the footer 30 pixels from the bottom, or can i?
[URL=http://cdxrevvved.mine.nu/web/ecommerce/testlayout2/test2.htm]CLICK FOR EXAMPLE[/URL] [/B][/QUOTE]
[i]Originally posted by cdxrevvved [/i]
[B]Ok.. so i changed the doctype , dropped the body margin, etc, now everything has the gaps again.... so how would I do it? [/B][/QUOTE]
[i]Originally posted by cdxrevvved [/i]
But now, how would I go about doing the footer, its still at the wrong end of the screen.. ?
[/QUOTE]
[i]Originally posted by cdxrevvved [/i]
just one more question.. what does the clear:both mean?[/QUOTE]
[i]Originally posted by cdxrevvved [/i]
I think I'm well on my way tho.. Ignore the look / layout of the left and right columns content, those were copied and pasted from another test layout originally thrown together in 10 mins with tables...
If ya have any ideas / suggestions, please feel free to hollar at me.. ? [/QUOTE]
[i]Originally posted by King Pellinore [/i]
#gray_trunk {
position: relative;
width: 100%;
margin-left: 20%;
background: gray;}
[/QUOTE]
[i]Originally posted by Stefan [/i]
This will force a horizontal scrollbar in [b]all nonbuggy browsers[/b]...[/QUOTE]
[i]Originally posted by King Pellinore [/i]
[B]What's a nonbuggy browser?
[/QUOTE]
0.1.9 — BETA 5.18