there is a CSS precedence, check your mywebsite.css has the declaration background:url which will "win" the one from static.css.
thank you for the reply...
Well I checked the content of mywebsite.css and it was empty. I did not add/create that css, but I think it is automatically included by CQ.
BTW I am using foundation components, which are built in CQ.
i suggest using a browser debugging tool, such as firebug, to determine which CSS rule overrides your expected rule and from which CSS file it originates.
Sure, will check it and will update this with my finding.
thanks for the reply.
Think I found the problem.
Looks like below div id is implementing some styles, which are overriding all other styles we apply from the static.
<div id="CQ"> in body.jsp
Removed the ID and it worked. I think the tutorial needs to get updated. Some other guys had also faced this same issue.
Thank you all for your inputs.