|
Giomanach -> RE: CSS Problem (6/3/2004 11:35:17)
|
Rich This: quote:
li { display: inline; } li a{ text-decoration: none; background-color: #036; color: #FFF; padding: .2em 1em; border-right: 1px solid #fff; } li a:hover{ background-color: #369; color: #fff; } Defines the style for the standard ul and li tags, nothing else. So everytime you create an unordered list, they will appear as you have set them. Now if I understand correctly, you are saying you have two lists, yes? The second one is defined by: quote:
ul.list { font-family:"Courier New",Courier; font-size:75%; } li.list{ list-style-image: url(images/intranet_bullet.gif); display: vertical; } In your html coding you will have to do: <ul> <li class="list">Link</li> .....Other List Items...... </ul> You can't define the style like you have done, plus, you never use Quotation marks in CSS, I'll re-write that part of the Stylesheet for you, then you can see the difference, and how you should do things. quote:
.list ul{ font-family: Courier New, Courier; font-size:75%; } .list ul li{ list-style-image: url(images/intranet_bullet.gif); display: block; } You need to define the class on the individual List Items within the HTML doc too. Any clearer? Dan
|
|
|
|