I'm currently working on a website and I'm trying to create a menu with specific width of 700px. However, I'm unsure whether to tackle this using CSS, JavaScript, or a combination of both. Which approach would be the most straightforward for achieving this?
<div id="footerMenu">
<ul>
<li><a href="tools.php?tool=galeria">About Us</a></li>
<li><a href="tools.php?tool=galeria">Partners</a>
<li><a href="tools.php?tool=galeria">Advertising</a>
<li><a href="tools.php?tool=galeria">Contact</a>
<li><a href="#">Admin</a></li><li><a href="tools.php">Tools</a></li> </ul>
</div>
This is the code snippet I have created, along with the CSS styling that I attempted but didn't yield the desired result:
#footerMenu
{
width: 640px;
margin: 0 auto;
display:block;
}
#footerMenu a
{
text-decoration: none;
display:block;
float:left;
border:0;
}
#footerMenu ul
{
list-style: none;
}