|
| |
|
|
satlas
Posts: 5 Joined: 12/8/2006 Status: offline
|
line-height inconsistency: IE vs firefox? - 12/22/2006 15:44:19
Hey everyone, I've run into another cross-browser inconsistency (ugh) and I can't figure out a workaround for it. I have specific amount of vertical space alloted for a text area of my site. I don't know which browser is giving me a problem, but in IE there is more vertical space in-between each line of text, which is making this area a fair amount longer in IE as compared to firefox (where there is less space between each line). I tried setting the "line-height" property for the CSS rule. But the the browsers are calculating these line heights in their own way. There must be a workaround for this, I just can't figure it out or find anything on it! Help, anybody? Thanks!
|
|
|
|
satlas
Posts: 5 Joined: 12/8/2006 Status: offline
|
RE: line-height inconsistency: IE vs firefox? - 12/22/2006 17:06:51
I am not specifying a height for the actual content area. However, I would like the height to be the same between browsers so I can achieve the layout I want. Please look at the site in both IE and firefox: http://www.bestbuys.com/newbestbuys I am trying to make the left and right navigational areas ("brands" and "partners") end at the same level as the most popular area. However, since there is more spacing inbetween lines in IE than firefox, I will never be able to do this across browsers. That's why i'm trying to fix the spacing difference. Sorry if I wasn't clear. Any ideas?
|
|
|
|
satlas
Posts: 5 Joined: 12/8/2006 Status: offline
|
RE: line-height inconsistency: IE vs firefox? - 12/22/2006 17:27:46
i'll look into that, thanks for the info! :)
|
|
|
|
d a v e
Posts: 4348 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: line-height inconsistency: IE vs firefox? - 12/23/2006 5:03:45
usually a number (e.g. 1.4) rather than a percentage is better for line heights as percentages are based on the parent container (i think) so can be bit weird
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4348 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: line-height inconsistency: IE vs firefox? - 12/23/2006 7:05:07
i read somewhere (Eric meyer i think) that the percentage is inherited from the parent container whereas ... er no wait a minute i have to check and see what i'm on about ;) i'll try and post back today when i find it :) in the meantime try both!
_____________________________
David Prescott Gekko web design
|
|
|
|
satlas
Posts: 5 Joined: 12/8/2006 Status: offline
|
RE: line-height inconsistency: IE vs firefox? - 12/24/2006 16:36:23
thanks guys, i'll try it and let you know!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|