Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE / Opera CSS & HTML Rendering Disparities 1

Status
Not open for further replies.

gabecubbage

Vendor
Jan 31, 2004
2
US
Annoying page in question:

Visiting the page in IE yields:
boxes_prob_ie.png


Visiting the page in Opera yields:
boxes_prob_opera.png



Finally, if I add the line "p {margin-bottom: 0px}" to the STYLE paramaters of the page, then there is no effect in IE. However, the Opera render becomes this:
boxes_prob_opera_2.png



It's that third view that matches what I actually want, and that's how I would expect it all to look. I've tried screwing around with a lot of things, but I just can't get IE and Opera to display the table cell spacing the same way.

How can I make this look like the third image in Internet Explorer?

Thanks in advance!
 
The heading element is the one causing you grief. if you add

h4 { margin: 0; }

to your css you should be ok. Also note that for the &quot;Some text in a box&quot; you are using incorrect syntax. Element <p> cannot be inside element <h4>. You can align text within <h4> element if you really need to. Hope it helps.
 
Wow, that problem has been plaguing me for some time. And such a simple answer. Thanks so much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top