2 replies [Last post]
flashcat7777
Offline
Enthusiast
Last seen: 10 years 49 weeks ago
Timezone: GMT-5
Joined: 2006-05-29
Posts: 64
Points: 5

Hello,
I have some text that is styled as follows:
visibility: hidden;
line-height: 0px;
font-size: 0px;

In Firefox, it is as if this text is completely invisible (it is inside a <p> tag), which is correct. In IE, however, a whole blank line is reserved for this text. How do I remove that extra whitespace for IE, but not change the results of the Firefox render?

Thanks,
Trevor

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 26 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Use display: none instead.

Use display: none instead.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

flashcat7777
Offline
Enthusiast
Last seen: 10 years 49 weeks ago
Timezone: GMT-5
Joined: 2006-05-29
Posts: 64
Points: 5

Works like magic...

Works like magic... thanks!

-Trevor