css ?
- Started
- Last post
- 25 Responses
- cbass990
this is what I do to get that effect:
<li><a href="index.html"style="color: #93b9bf">HOME</a></li>
- flyingnowhere0
so i think im just going to use Stugoo's option
#idname li{background-color:red; }
#idname li+li{background-color:blue; }
#idname li+li+li{background-color:green; }and say to hell with ie6 users
- thanks for the help everyone!flyingnowhere
- if you can add jquery, my script will cater for ie6rafalski
- D_Dot0
Is it always a set amount of li elements? or is that ever changing as well? Take a look at this nav (which is what I assume you are doing)
http://www.realmacsoftware.com/r…
The first <li> element has a bg image, that you could make any colors you want, then just make sure the following <li> elements are set to the same width.- http://www.realmacso…
D_Dot - minus the text of course...D_Dot
- its not navigation like that, it's floating elements with a photo and text within, 3 rows of 3flyingnowhere
- lol carry on then.D_Dot
- http://www.realmacso…
- matt310
i haven't read anything above but use classes. also you don't need the UL id for the coloring:
<ul>
<li class="red">content 1</li>
<li class="white">content 2</li>
<li class="black>content 3</li>
</ul>styles are:
.red {
background-color: #c00;
padding: 5px; (might want to pad it out a bit)
}.white {
background-color: #fff;
padding: 5px;
}.black {
background-color: #000;
padding: 5px;
}that's it that's all.
- maybe you should have read everything aboveflyingnowhere
- hahajsaul
- hahamoth
- garymatt31
- lobstarr0
that's it that's all