alohatech
12-16-2006, 04:09 AM
I am new to css and admit I have a lot to learn.
I have a column of links in a sidebar and what I would like to do is stagger each link (1st link indent 50 px, 2nd link indent 0 px, 3rd link indent 50 px, 4th link indent 0 px, ect)
Is there a way to do this with css, I have tried a few things but my text formatting keeps changing. Below is the css code I have applying to my sidebar.
Thanks for any help you can offer to this newbie.
#sidebar ul {
list-style-type: none;
width: 100%;
display: block;
margin: 0;
padding: 0;
}
#sidebar li {
display: block;
}
#sidebar a {
font-size: 1.3em;
font-weight: bold;
text-decoration: none;
color: #00f;
display: block;
text-indent: -0px;
padding: 15px;
padding-left:5px
}
#sidebar a:hover {
font-size: 1.5em;
text-decoration: none;
color: #f00;
}
I have a column of links in a sidebar and what I would like to do is stagger each link (1st link indent 50 px, 2nd link indent 0 px, 3rd link indent 50 px, 4th link indent 0 px, ect)
Is there a way to do this with css, I have tried a few things but my text formatting keeps changing. Below is the css code I have applying to my sidebar.
Thanks for any help you can offer to this newbie.
#sidebar ul {
list-style-type: none;
width: 100%;
display: block;
margin: 0;
padding: 0;
}
#sidebar li {
display: block;
}
#sidebar a {
font-size: 1.3em;
font-weight: bold;
text-decoration: none;
color: #00f;
display: block;
text-indent: -0px;
padding: 15px;
padding-left:5px
}
#sidebar a:hover {
font-size: 1.5em;
text-decoration: none;
color: #f00;
}