css rules not showing up
Question by Anders Kitson
I have the following css rules set for #container nav
at this site
#container nav {
margin-left: none;
margin-right: none; } }
although when I use inspector the margins are not written, the selector is just empty no rules at all. Not sure what could be causing this. How do I debug this?
Answer by sweetamylase
Should be:
#container nav {
margin-left: 0;
margin-right: 0;
}
none
is not a proper value for margin
. Should use 0
.
Answer by Starx
none
is not an acceptable value for margin. Use 0
instead.