ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
What is the difference between "div.socialbuttons" and "div.socialbuttons div"? What is the purpose of the additional "div" in 2nd selector? Why not building a single selector?
Sorry, I'm very CSS beginner
Thank you
13 years with RocketTheme and counting!
I'm a woman. This does not mean that I'm not able to distinguish a goat from a website and a shopping list from a css file.
I design websites since 1996, right? Cheers
div.socialbuttons {..}
This rule should style a div with the class="div.socialbuttons" <div class="socialbuttons">some code</div>
div.socialbuttons div {...}
This rule should style all div's that are inside a div with the class="div.socialbuttons"
like
<div class="socialbuttons"> <div>some code</div>
<div>some code</div>
<div>some code</div>
</div>
13 years with RocketTheme and counting!
I'm a woman. This does not mean that I'm not able to distinguish a goat from a website and a shopping list from a css file.
I design websites since 1996, right? Cheers
because I failed at copy&paste.
Sorry ... changed that now ...
Thank you Henning.
As usual, you helped me solve a great doubt! :cheesy:
Cheers,
Antonella
13 years with RocketTheme and counting!
I'm a woman. This does not mean that I'm not able to distinguish a goat from a website and a shopping list from a css file.
I design websites since 1996, right? Cheers