|
Posted by dorayme on 03/19/06 04:48
In article <441caa73$0$3691$cb0e7fc6@news.centralva.net>,
"Jonathan N. Little" <lws4art@centralva.net> wrote:
> There is no last-child. And IE's support of these selectors is spotty at
> best.
>
> This is simple and seems to look okay, even in MSIE.
>
> #navStrip UL {
> line-height: 2;
> margin: .2em;
> padding: 0;
> }
>
> #navStrip LI {
> display: inline;
> list-style-type: none;
> margin: 0 -.2em;
> padding: .25em .5em;
> border-left: 1px solid #00C;
> border-right: 1px solid #00C;
> }
I will look at your suggestion tomorrow, thanks. I better shut up
till then...
Perhaps I can just say this (if only because Boji is starting
cast aspersions on Martian intelligence):
Was it a total illusion of mine about last-child?
I used FF (The web developer tools are a new toy for me, live
changes to css or html tweaking!) When my
#navStrip li:last-child {
border: none;
padding-left: 0;
}
was in the css, the last border of the row had no right visible
margin bar. When I removed it, the bar appeared. I kid you not,
it seemed to me to be doing what I wanted. So what is going on? A
FF bug?
--
dorayme
[Back to original message]
|