jimfog Posted February 14, 2012 Share Posted February 14, 2012 I do not understand what is the reason to use background-color: transparent; Since the result of the above code is "nothing", no color appearing at all, what is the reason for using it in the first place? Link to comment Share on other sites More sharing options...
dsonesuk Posted February 14, 2012 Share Posted February 14, 2012 background-image with transparent areas, overlapping other images to blend together, so you wouldn't want any background-color in that situation for one. you want all element in a element container with specific bg color but one, give that a class or id ref and use background-color: transparent; Link to comment Share on other sites More sharing options...
Ingolme Posted February 15, 2012 Share Posted February 15, 2012 It's there for if you want to override a background-color style that the element has inherited from another selector. Link to comment Share on other sites More sharing options...
eTianbun Posted February 15, 2012 Share Posted February 15, 2012 NB: The default background-color for most elements is always :transparent. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.