In IE I am getting some unsitely vertical gaps between the div boxes. I think that they are caused by the "hr.cleaner" which tidies up the rounded corner divs in browsers other than IE. Changing the margin-top and margin-bottom to negative values only has an effect in Firefox and Netscape where the spacing is already OK.
Here's the CSS code:
.orangeTL , .orangeTR , .orangeBR , .orangeBL {
background-repeat:no-repeat;
}
.orangeTL {
background-color:#1A171B;
background-image:url(orange_tl.gif);
background-position: left top;
}
.orangeTR {
background-image:url(orange_tr.gif);
background-position: right top;
}
.orangeBR {
background-image:url(orange_br.gif);
background-position: right bottom;
}
.orangeBL {
background-image:url(orange_bl.gif);
background-position: left bottom;
}
#columnsmain {
padding-bottom: 0px;
}
#columns {
width: 710px;
margin:0px;
border: 0px;
text-align:left;
max-width: 710px;
}
#leftcolumn {
float: left;
width: 345px;
margin-right:0px;
padding-bottom:15px;
}
#leftcolumn-content {
margin:0px;
padding-top:20px;
padding-right:30px;
padding-left:30px;
height: 209px;
}
#rightcolumn {
float: right;
width: 345px;
margin-left:0px;
padding-bottom:15px;
}
#rightcolumn-content {
margin:0;
padding-top:20px;
padding-right:30px;
padding-left:30px;
height: 209px;
}
#columnsmain {
width: 710px;
margin:0px;
border: 0px;
text-align:left;
max-width: 710px;
}
#leftcolumnmain {
float: left;
width: 345px;
margin-right:0px;
}
#leftcolumn-contentmain {
padding-top:0px;
padding-right:0px;
padding-left:0px;
height: 250px;
}
#rightcolumnmain {
float: right;
width: 365px;
background-color:#1A171B;
margin-left:0px;
height: 250px;
}
#rightcolumn-contentmain {
margin:0;
padding-top:20px;
padding-right:30px;
padding-left:30px;
padding-bottom:25px;
}
hr.cleaner {
clear:both;
height:1px;
margin-top:0px;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
padding-bottom:0px;
padding-top:0px;
border:none;
visibility: hidden;
}
Here's the HTML code:


Nunc sodales aliquam augue. Proin libero. Quisque est arcu, pretium in, euismod at, volutpat id, turpis. Quisque rutrum laoreet nisl. Morbi tempus. Vivamus tempus, ante sed pretium ullamcorper, mauris ipsum pretium ipsum, eget placerat quam tellus at justo. In pede. Vivamus sodales, mi quis ...

The Bishops
Butterfly Bangs
The Dash
Dogs
Eight Legs
The Husseys
The Indelicates
Kingsize
The Lea Shores
The Lines
Look See Proof
The Moths
Naked Lunch
The People’s Revolutionary Choir
The Puzzle
The Rocks
The Runners
Subliminal Girls
Nitasha Jackson


Title - Lorem Ipsum
Released - 07/07/07
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec felis odio, dapibus in, malesuada eu, lacinia a, sapien.
Basically I want less of a vertical gap in IE between the div boxes. Any help greatly appreciated. Thanks in advance.
Here's the link
and here's a link to the
and here's a link to the validator
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.harbourstudios.com%2Fweekender%2Findex.htm
world's most awesome reply
world's most awesome reply ever
Thanks that's a useful site.
Thanks that's a useful site. It doesn't seem to deal with my CSS problem though unfortunately.
You are using quirks
You are using quirks mode.
Fix the doctype (http://csscreator.com/node/18218) and the few remaining errors and your page will be easier to debug.
olivercoquelin wrote:Thanks
Thanks that's a useful site. It doesn't seem to deal with my CSS problem though unfortunately.
Fix the errors, then we help you fix your site.
Errors fixed
Phew. That took a while. OK all of those errors are now fixed. Is anyone now able to see why I'm getting those wierd vertical spaces between the div boxes please?
Also as a result of the changes I have made the bottom right rounded corner of the top box is not sitting in place. Can anyone see why?
Cheers.
Are your rounded boxes
Are your rounded boxes always going to be a fixed size? If so you can do away with a lot of the divs.
No they vary in size.
No they vary in size.
Width, or just height?
Width, or just height?
Both width and height. But
Both width and height. But the main box is unique in that it has an image on its left half meaning that it only uses two instances of the rounded corners rather than four. So if it's the only way to solve the problem I could apply a seperate CSS rounded corner solution to it if you think that's the only way to solve the problem?
Only having had a very
Only having had a very quick look at this, but try adding font-size:0; to your hr.cearer.
I'm more concerned as to whether that element is really required though, but haven't looked at things closely
Unfortunately that didn't
Unfortunately that didn't work but thanks for trying.
If I don't use the hr.clearer square black block appear below the div boxes, probably due to the scrollable blockquotes being longer than the div boxes.
It appears that your problem
It appears that your problem is a <br> tag and an <hr> tag in your code between these elements. remove the hr and use
and you should be fine.
Hope that helps,
LokiLoks
Wow thanks! That works
Wow thanks! That works perfectly.
Just my rounded corner problem remaining now if anyone knows the answer?
Thanks again LokiLoks.
What's the problem there? I
What's the problem there? I don't recall.
LokiLoks
The bottom right rounded
The bottom right rounded corner of the top box is not sitting in place.
It's related to your
It's related to your padding. Changing:
#rightcolumn-contentmain {
margin:0;
padding-top:20px;
padding-right:30px;
padding-left:30px;
padding-bottom:25px;
}
to
#rightcolumn-contentmain {
margin:0;
padding-top:20px;
padding-right:30px;
padding-left:30px;
padding-bottom:23px;
}
fixes it
That works perfectly. Thank
That works perfectly. Thank you.
Remember you can express
Remember you can express this with a lot less css:
#rightcolumn-contentmain {
margin:0;
padding:20px 30px 23px;
}
That would give you the same result.