Forum Moderators: not2easy

Message Too Old, No Replies

text inside div not the same in FF and IE?

         

CodilX

2:42 am on Nov 30, 2007 (gmt 0)

10+ Year Member



Hi there,

I'm in a bit of trouble with this problem.. How do I fix the issue of text inside the div being differently spaced from the top in both browsers?

In firefox it looks like

________
¦
¦ my text
¦_______

and in internet explorer

________
¦ my text
¦
¦_______

rocknbil

8:14 am on Nov 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are you doing in the CSS? Is "text" contained in a paragraph tag?

This will most likely have to do with some setting on the margins and padding of either the containing div or the text container, or both.

.mydiv, mydiv p { margin:0; padding:0; }

adb64

9:22 am on Nov 30, 2007 (gmt 0)

10+ Year Member



Please post the DOCTYPE you are using and the relevant HTML and CSS code so we can see what exactly you are doing. And what exactly do you want to achieve, the FF or IE appearance?

penders

12:41 pm on Nov 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This sounds as if it could be an issue with collapsing margins [webmasterworld.com] ...?