6StringGeek
01-05-2009, 08:03 PM
Maybe someone could help here. I have two menu's: one in the header and one in the footer...pretty standard fare. I want to make them both unordered lists, but have different colors, sizes, margins etc...so I am assuming I need to assign classes...but not sure how. Here's what I have for the top menu. Can I do the same thing for the footer menu using a class, and how would I do that? I have been using <p> for the footer menu, but think it should be a <ul> since it's not really a paragraph...any help appreciated.
<div class="menu">
<ul>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
</ul>
</div>
ul {
list-style-type:none;
}
li {
display:inline;
}
.menu a {
float:left;
text-align:center;
width:130px;
text-decoration:none;
color:#fff;
font-size:12px;
font-weight:700;
background:transparent;
padding:3px 0;
}
.menu a:hover {
color:#ff0;
background:transparent;
}
<div class="menu">
<ul>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
<li><a href="#">ITEM 1</a></li>
</ul>
</div>
ul {
list-style-type:none;
}
li {
display:inline;
}
.menu a {
float:left;
text-align:center;
width:130px;
text-decoration:none;
color:#fff;
font-size:12px;
font-weight:700;
background:transparent;
padding:3px 0;
}
.menu a:hover {
color:#ff0;
background:transparent;
}