Don’t put padding in the ‘li’ item. Instead set the anchor tag to display:inline-block;
and apply padding to it.
More Related Contents:
- Element not located at bottom of viewport
- How to apply Hovering on html area tag?
- How do I remove the default link color of the html hyperlink ‘a’ tag?
- Is it possible to hide the title from a link with CSS?
- My Website is Mirror-flipped on iPhone Devices
- Fill SVG path element with a background-image
- Equal height columns with CSS
- Thick underline behind text
- Space between nowrap inline blocks [duplicate]
- Remove Select arrow on IE
- Difference between Width:100% and width:100vw?
- How do I remove the blue styling of telephone numbers on iPhone/iOS?
- Font Rendering / Line-Height Issue on Mac/PC (outside of element)
- What makes the text on a element vertically centered?
- How to hide drop down arrow in IE8 & IE9?
- Table tbody scroll in IE8
- difference between width auto and width 100 percent
- How can I prevent the scrollbar overlaying content in IE10?
- Change the color of a bullet in a html list?
- Font awesome is not showing icon
- CSS3 border-radius clipping issues
- CSS wrong appearance of border-radius on a nested div
- How to make a border overlay child div?
- Inverted Scooped corners using CSS
- Why does the ‘title’ attribute cause browsers to ignore my styles?
- CSS transform origin issue on svg sub-element
- transition for background-image in firefox?
- CSS Layout 2-Column fixed-fluid [closed]
- Create a Reverse Clip-Path – CSS or SVG
- CSS After Element to insert mailto link?