Quote:
Originally Posted by joelupet
Also, if there is alternative way like add id$class to UL elements structure.
|
You would set the id and/or class in the HTML:
Code:
<ul id="mainNav" class="nav">
...
</ul>
Then target them in your CSS:
Code:
ul {
...
}
.nav {
...
}
ul.nav {
...
}
#mainNav {
...
}
#mainNav.nav {
...
}
Quote:
Originally Posted by joelupet
I would like to see my menu centered.
|
How can it be centered if it has a width of 100%? You would have to decrease that width and use
margin: 0 auto;
Code:
#footer_menu ul{
width:100%; /* reduce */
margin: 0 auto; /* add */
overflow:hidden;
background-color:red;
}