justravis Posted May 18, 2014 Share Posted May 18, 2014 In CSS, most people add most styling to the A tag instead of UL or LI. Do you know why? Quote Link to comment Share on other sites More sharing options...
Solution fastsol Posted May 18, 2014 Solution Share Posted May 18, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.