Forum Moderators: not2easy

Message Too Old, No Replies

CSS text in div

         

gregoryjameswood

2:04 pm on Sep 2, 2006 (gmt 0)

10+ Year Member



I have a small cross-browser problem with vertical text align inside a div. I have tried vertical-align and it doesnt seem to affect the text at all.

Strangely, the problem is in firefox. Ive posted a screenshot of a comparison between the two browsers.

[img78.imageshack.us...]

How do i get the text snug up to the top of the div in firefox like it is in ie? Ive tried padding:0px;

Thanks :)

gregoryjameswood

2:12 pm on Sep 2, 2006 (gmt 0)

10+ Year Member



development:

its to do with the <h2> tags around the welcome title.

whenever i put them on firefox puts that small gap between the top of the div and the h2 title.

for the moment, ive left it as normal text but bold. but its still annoying me. anyone got any ideas? cheers.

Ingolemo

3:23 pm on Sep 2, 2006 (gmt 0)

10+ Year Member



Have you tried
margin:0;
on the h2?