I'm migrating my HTML / CSS website to WordPress (creating a theme). I'm using the code shown below to turn wordpress 'pages' into navigation li links.
The code works, But the Word press nav styling is slightly different to the HTML site.
The code should work the same in both cases, but I suspect WP is not applying either an id or class
Can anyone help me understand why these code snippets give different styling results (The same css sheet is used for both the wordpress and the non wordpress site)
WP nav code (found in header.php)
<nav>
<ul id="navigation" class="slimmenu">
<?php wp_nav_menu(); ?>
</ul>
</nav>
HTML site nav code
<nav>
<ul id="navigation" class="slimmenu">
<li><a href="bike-shed.php">Home</a></li>
<li><a href="mountain-bikes.php">Bikes</a></li>
<li><a href="bicycle-parts.php">Parts</a></li>
<li><a href="charity-bikeevents.php">Events</a></li>
<li><a href="contact-bikeshed.php">Contacts</a></li>
</ul>
</nav>
many thanks,