![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
In article <r4o152ploq1fegoviaoes547jfkt3aodv3 (AT) 4ax (DOT) com>, Ken Loomis not_a_real_email (AT) address (DOT) com> writes Must be because the link boxes are having "pack width" as opposed to "max width". By setting width:100% for LI elements eliminates the gaps. Thanks, that was the simplest solution. It doesn't work for me. The li width has to be 99% and the visited, etc. width has to be 100%. And I haven't tested on different resolutions. Hmm, I just tried it on IE6, FF and Opera and they all worked fine. IE5 showed some extraneous spaces below the links, but the widths were fine. What browser, font size, etc were you using when it didn't work? |
#22
| |||
| |||
|
|
In article <r4o152ploq1fegoviaoes547jfkt3aodv3 (AT) 4ax (DOT) com>, Ken Loomis wrote: It doesn't work for me. The li width has to be 99% and the visited, etc. width has to be 100%. And I haven't tested on different resolutions. I've updated the sample page to show my latest incarnation. Please try this one and see if it works for you. I'm puzzled as to how it works for me and not you. http://www.kidsinaction.org.uk/fd/homepage.html |
#23
| |||||
| |||||
|
|
Els wrote: VK wrote: It is getting more puzzling in a case like margin: 0 .5em (space after 0). Should UA interpret it as margin:0.5em or as margin: 0px 0.5em or as an incorrect declaration? Neither - they should interpret it as a correct declaration, meaning 0 margin for top and bottom, and a .5em margin for left and right. Are you referring to a relevant W3C specification or is it your own interpretation of the sentence "After a '0' number, the unit identifier is optional." ? |
|
On practice yes, it works the way you suggested. |
|
Moreover margin:0. 5em (space after period) sets left/right to 0px and top/bottom to 5em. |
|
A very nice AI feature :-) |
|
though can be very far from the intended rule (if an erroneus space). |
#24
| |||
| |||
|
|
Alan Silver wrote: In article <r4o152ploq1fegoviaoes547jfkt3aodv3 (AT) 4ax (DOT) com>, Ken Loomis not_a_real_email (AT) address (DOT) com> writes Must be because the link boxes are having "pack width" as opposed to "max width". By setting width:100% for LI elements eliminates the gaps. Thanks, that was the simplest solution. It doesn't work for me. The li width has to be 99% and the visited, etc. width has to be 100%. And I haven't tested on different resolutions. Hmm, I just tried it on IE6, FF and Opera and they all worked fine. IE5 showed some extraneous spaces below the links, but the widths were fine. What browser, font size, etc were you using when it didn't work? I bet margins or padding were not set to 0. width:100% works reliably for W3C box only with zero margin/paddings, otherwise your layout easy goes to trash (or an additional wrapping box is needed). |
#25
| |||
| |||
|
|
Alan Silver wrote: In article <r4o152ploq1fegoviaoes547jfkt3aodv3 (AT) 4ax (DOT) com>, Ken Loomis wrote: It doesn't work for me. The li width has to be 99% and the visited, etc. width has to be 100%. And I haven't tested on different resolutions. I've updated the sample page to show my latest incarnation. Please try this one and see if it works for you. I'm puzzled as to how it works for me and not you. http://www.kidsinaction.org.uk/fd/homepage.html Of course it works - looks very nice btw. To experience the troubles of Ken Loomis, simply set top/left margin or padding (yours to choose) to say 5px while still having width:100% W3C Box falls apart right away: you need extra wrapper for LI's now. |
#26
| |||
| |||
|
|
In article <r4o152ploq1fegoviaoes547jfkt3aodv3 (AT) 4ax (DOT) com>, Ken Loomis not_a_real_email (AT) address (DOT) com> writes Must be because the link boxes are having "pack width" as opposed to "max width". By setting width:100% for LI elements eliminates the gaps. It doesn't work for me. The li width has to be 99% and the visited, etc. width has to be 100%. And I haven't tested on different resolutions. I've updated the sample page to show my latest incarnation. Please try this one and see if it works for you. I'm puzzled as to how it works for me and not you. |
![]() |
| Thread Tools | |
| Display Modes | |
| |