Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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 ?

#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.