![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I am going to suggest you, like Dorayme has already twice, to avoid using line-height: you should *not* be using line-height anywhere at all in your webpage. I have been coding and creating webpages since 1997 and I have never used line-height and do not intend to. |
|
Another argument is that there are many bugs in IE 6 regarding line- height and there are some still left in IE 7 regarding line-height. |
#12
| |||
| |||
|
|
Sub titulo Re: vertical-align scripsit GTalbot: I am going to suggest you, like Dorayme has already twice, to avoid using line-height: you should *not* be using line-height anywhere at all in your webpage. I have been coding and creating webpages since 1997 and I have never used line-height and do not intend to. On the very contrary, authors should _routinely_ include a rule like * { line-height: 1.3; } using a suitable value (a unitless number, which here by definition is a value with the current font size as its implied unit). The value should be selected so that it is reasonable for the font(s) suggested by the author;... |
#13
| |||
| |||
|
#14
| |||
| |||
|
|
Hy Gérard I went to your site. The least we can say is that IE should be banished from the web. Another demonstration of Billy's will to dominate. But that's another discussion. The effect I want to realize is to make the link text behave like a button. When pressed it shifts down a bit but I don't want to use images. |
|
slight shift with a color and backcolor change maybe and underlining should give the effect of a pressed button. Other effects could be applied on hovering etc. I first applied a line-height and vertical-align to LI because IE would not react to any vertical commands, so it was a try that I forgot to remove afterwards. snip .menu UL, footer UL{margin:0px;padding:0;text-align:center;float:right; } .menu LI, .footer LI{display:inline; padding:0px 4px;height:1.3em} .menu A, .footer A{position:relative;text-decoration:none;color:#000;outline-style: none;line-height:25px;} .menu A:hover, .footer A:hover{top:.3em;} /snip now works in FF and OP but still not in IE. Is there a workaround on that for IE ? Thanks |
#15
| |||
| |||
|
#16
| |||
| |||
|
#17
| |||
| |||
|
|
Sub titulo Re: vertical-align |
|
On the very contrary, authors should _routinely_ include a rule like * { line-height: 1.3; } using a suitable value (a unitless number, which here by definition is a value with the current font size as its implied unit). The value should be selected so that it is reasonable for the font(s) suggested by the author; typically, 1.3 is OK for Arial, and for serif fonts, you might use a somewhat smaller value. And naturally you need to consider the effect of different font suggestions, overriding this basic rule as appropriate for individual elements. |
![]() |
| Thread Tools | |
| Display Modes | |
| |