Jump to content

CSS Navigation Menu - Styling UL vs LI vs A tags?


justravis

Recommended Posts

I would say that your statement is highly untrue.  For those elements the styling reasons can vary widely depending the end result desired.  But one good reason to style the A tag for a menu item is to be able to make the whole button area clickable and not just the menu text it self.  Typically you would set the A tag as display: block to achieve this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.