You are here: Re: Left border not wanted when list items wrap... « HTML « IT news, forums, messages
Re: Left border not wanted when list items wrap...

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация