Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Basic CSS… HELP! Reply To: Basic CSS… HELP!

#197573
Senff
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.