Skip to content Skip to sidebar Skip to footer

Remove White Space On Ul With Css

I'm trying to remove some white space on the left of a fixed top menu ul but I'm stuck, I already searched and put this: #nav li { list-style: none; display: inline-block;

Solution 1:

DEMO

As you code padding: 0; to the #nav

Solution 2:

With <ul> tag set:

font-size: 0px;

With <li> tag set:

font-size: 14px; /*or custom*/

Other solution: https://davidwalsh.name/remove-whitespace-inline-block

Solution 3:

add padding:0; and margin:0 to the <ul>.

Solution 4:

Add padding: 0; to the <ul>.

Post a Comment for "Remove White Space On Ul With Css"