Sorry, forgot to send my reply to the list as well... Hello from Australia!
On 1/27/07, Fred Janon <[EMAIL PROTECTED]> wrote: > > I love it! So simple of a solution! How didn't I think of it! Great, > thanks Zoe! By the way the negative margin or padding doesn't work in IE, > depending on what doctype you use, the results are totally different an > erratic! > > Brilliant, it works just right! > > Fred > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns=" http://www.w3.org/1999/xhtml"> > <head> > <title></title> > <style type='text/css''> > ul { > list-style: none; > border-bottom: 1px solid blue; > } > li { > border: 1px solid red; > border-bottom: 0px; > } > > </style> > </head> > <body> > > <ul> > <li>01</li> > <li>02</li> > <li>03</li> > <li>04</li> > <li>05</li> > </ul> > > </body> > </html> > > > On 1/27/07, Zoe M. Gillenwater <[EMAIL PROTECTED]> wrote: > > > > Fred Janon wrote: > > > I have a UL with some LIs. I want a 1px border around all the LIs with > > no > > > 2px border between the LIs. I have been fiddling around with the UL > > and LIs > > > borders but I can't find a simple solution to it. My best solution so > > far is > > > to have no border on the UL and the top, left, right borders for all > > the LIs > > > except the last one which has all 4 borders to get the bottom border. > > > > > > > Depending on the styles on your ul, you could simply assign the bottom > > border to the ul. This would allow you to avoid having to put a class on > > the last li. > > > > The other ideas about negative top margins are fine as well; I just > > wanted to throw another option out there. > > > > Zoe > > > > -- > > Zoe M. Gillenwater > > Design Services Manager > > UNC Highway Safety Research Center > > http://www.hsrc.unc.edu > > > > > > ______________________________________________________________________ > > css-discuss [EMAIL PROTECTED] > > http://www.css-discuss.org/mailman/listinfo/css-d > > IE7 information -- http://css-discuss.incutio.com/?page=IE7 > > List wiki/FAQ -- http://css-discuss.incutio.com/ > > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > > > > ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/