General

Chat

Basic Css help

Currently trying to make a basic website, and I want my secondary nav to have links that are white with a black background, but turn black with a white rectangle around them when you hover over one.

I managed to fix the links coming up blue and got them to white, but the text stopped turning black when I hover over it so it's now just a white box due to the text also being white.

The CSS I'm using for the left col:
http://imgur.com/v5sOpSz

What it's looking like:
http://imgur.com/aDBmtEo (I don't know why my cursor didn't show up in the SS but it's hovering over the white rectangle)

What am I doing wrong

July 3, 2015

1 Comment • Newest first

Omegathorion

It works for me. Maybe something is wrong with the way you nested your HTML? I did this and it works:

<a href equals "http://www.basilmarket.com"><div class="left_col"><h4>Testing</h4></div></a>

I tried it with a few other combinations and some of them don't work.

Reply July 3, 2015 - edited