Home › Forums › CSS › How to set background color to transparent in this situation ? › Reply To: How to set background color to transparent in this situation ?
August 23, 2013 at 11:52 am
#147965
Senff
Participant
If you give a SECTION a transparent background color, it will show the background color of the parent element(s). So if you have this:
<body> <--- background has image
<div id="gradient"> <--- background is white
<section id="grid1wrap"> <--- background is transparent
Then the SECTION will have no background and it will show the background color of #gradient….which is white. The background color of #gradient obscures the background image of the body.