.main-links ul li {
float:left;
margin: 0px 30px 0px 30px;
}
add this code to your CSS.
Also, in the codepen environment, it isn’t necessary to declare the <!DOCTYPE>
or include the <head>
. codepen take care of that for you.
Use flexbox.
I’d highly suggest learning flexbox and not using floats.
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.