|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
 |
Re: CSS Menu Rendering Problem in Opera |
 |
|
 |
|
|
|
  08-26-04 - 05:28 PM
|
Lachlan Hunt wrote:
> Els wrote:
>
>
> Thank you, that was essentially the problem. I ended up
> just taking it out, and setting the height to 2em instead.
> The menu now works perfectly well in Opera, though I can't
> work out how to get the text for each menu item to be
> vertically centered within it's block without adding
> supurflous <span>s to the mark up.
Setting the line-height to the same as the height I think.
> The method I was using that works in Firefox:
>
> #sitenav li a { ... padding: .4em 0; line-height: 1.2em; }
>
> which should add to 2em, thus vertically centering within a
> box that is 2em high,
Ah, you did that already :-)
> was being miscalculated by Opera due
> to what looks like a rounding error, leaving a 1px gap
> between each menu item.
And what if you anticipate that error and put the line-height
to 2.1em? Or take the .4em padding out? If the line-height is
equal to the height, padding should be obsolete, I think?
What I don't get, actually, is what you are seeing in Opera.
I've just taken out the min-height:40% that I had in it, and
afaics the menu items are all vertically centered in their
respective little boxes:
http://locusmeus.com/temp/lachlan.html
(Opera 7.51)
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
 |
| All times are GMT. The time now is 03:37 PM. |
 |
|
|
|
|
|  |
|