I'm adding slightly rounded corners at the top and bottom of the central
(content) div on a site.

Since there's a repeating image (vertical only) background in the div, I set
it up using the method where you put an extra wrapper div around the
content, so you can insert non-repeating images (with the rounded corners)
bracketing the content div.

In IE there was a gap between the top rounded corner image and the beginning
of the content div background. After browsing around some of the list
archives I tried an idea from a "sometimes I do this when nothing else
works" post (mine didn't happen on the bottom, so not just standard IE
alternate box issue) and put  <br /> after the top image with the rounded
corners.

Which worked its magic and the gap disappeared.

My question is why? Why is that necessary and what exactly is it doing that
eliminated the gap? I supposed that in a general way it must be setting
boundaries between elements, but saying where the image element ends by just
putting height and width in the tag doesn't do the same thing.

Oh if you want to see the site it's http://shanghaigateboston.com/ (great
food if you're in the area)
Work in progress and sorry, layout is a hybrid of tables and CSS, which I
realize is anathema to some of you, but I'm just experienced beginner with
CSS while fairly expert with HTML and so constantly working to integrate
more CSS vs whole hog switchover.

BTW, thanks to all here for your part in my education - both the people who
answer questions and the ones who ask them. I learn a lot from reading, even
about stuff I'll probably never use myself.

Thanks.
Kim
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to