I have got a little problem with setting a background image for
Solution 1:
Astonishing that no answer addresses or mentions the actual problem here.
The CSS selector button #rock says "give me an element with the id rockinside a <button> element", like this:
<button><spanid="rock">This element is going to be affected.</span></button>Copy
But what you wanted is a <button> element with the id rock. And the selector for that would be button#rock (note the missing space between button and #rock).
And as @Greg already mentioned: #rock is already specific enough to target the button and could be used on its own.
Solution 2:
For some odd reason, the width and height of the button have been reset. You need to specify them in the ID selector as well:
Post a Comment for " Background Image"