2 replies [Last post]
cbit
Offline
newbie
Last seen: 15 years 19 weeks ago
Joined: 2004-04-04
Posts: 10
Points: 0

http://www.esmevalk.com/index-artist.php

Please take a look at the black text in the two yellow divs. In IE and Opera, the text in the right hand block appears to begin higher up than the left hand text. In firefox, both sides are equal.

All the text is inside <p> tags with the following style

p {
		font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333;
		line-height: 13px;
		margin:10 0 15 0px;
		padding:0;
	}

The <p> content in the right hand div is contained inside tables.

Why do the spacing instructions seems to be ignored by IE and Opera when the text is inside a <td>? and is there a way to avoid this?

_janim
Offline
Regular
phinland
Last seen: 15 years 10 weeks ago
phinland
Joined: 2004-06-08
Posts: 22
Points: 0

&lt;p&gt; spacing ignored when inside a &lt;td&gt;

You have improper markup, change
margin:10 0 15 0px
to
margin:10px 0 15px 0;

Please Provide a link to your code/site. If you can't, then please at least provide the HTML & CSS together.

cbit
Offline
newbie
Last seen: 15 years 19 weeks ago
Joined: 2004-04-04
Posts: 10
Points: 0

&lt;p&gt; spacing ignored when inside a &lt;td&gt;

excellent, thanks very much janim. now i'll know for next time Smile