Conflicting problem with css

Posted by Luke on Stack Overflow See other posts from Stack Overflow or by Luke
Published on 2010-12-31T15:41:21Z Indexed on 2010/12/31 15:54 UTC
Read the original article Hit count: 191

Filed under:
|

I was told last night that the following isn't allowed in CSS.

<a href="index.php"><div class="button">Home</div></a>

.submenu div.button{width:72px; height:20px; float:left; margin:0 20px; font-size:0.9em; font-family:Arial; padding:2px; color:black;}

How can i create the look I want for the button and then allow the user to click on it in any other way? What is the best way to do this?

It works as it is, but I am being told it's not complient.

© Stack Overflow or respective owner

Related posts about html

Related posts about css