June 17, 2013

What does "+" mean in css. Help me?

Smartuser’s Question:

What does the “+” symbol stand for in css style. What does the below code infer
#mainDiv label + a { }

+ means adjacent selector.

In your case it means if <a> tag is found directly after <label> tag inside the mainDiv then apply the css.

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!