March 18, 2013

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.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!