Home › Forums › CSS › Basic CSS… HELP! › Reply To: Basic CSS… HELP!
March 7, 2015 at 2:45 pm
#197573
Participant
It’s better than nothing, but we’d still need to see the site itself, so we could inspect the code and tell you what you’d need to change.
Since you’re developing on your local machine, that’s probably not an option, so recreate the issue on Codepen and we can use that as our guide.
I can make a (very rough) guess though, and that’s to change your code into this:
.horizontal ul
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
background-color: rgb(128, 0, 0); /* ADD THIS LINE */
}
.horizontal ul li a
{
text-decoration: none;
padding: .2em 1em; /* REMOVE THIS LINE */
color: white;
background-color: rgb(128, 0, 0);
}
Just a wild guess though. Again, without seeing any live code I can’t know if it would actually work or not.