I am trying to put various figures inside a division or a section which has a particular background color! I can not understand why the below code is not working! Please help!
<div style="algin:center;width:100%;height:auto;background-color:#212121">
<figure class="snip1197">
<figcaption>
<blockquote>Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.</blockquote>
<div class="arrow"></div>
</figcaption>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sq-sample10.jpg" alt="sq-sample10"/>
</figure>
</div>
i am guessing you want the image to
blend
on thebackground-color
. you can usebackground-blend-mode
for that. but you need to set background-color and background-image on the same element.in the below example i used them on the
div
see snippet or > jsfiddle
P.S. 1)
align
was written wrong (algin
) and alsoalign:center
does not existP.S. 2) the above code is just an example. your question lacks a proper explanation on what you want to achieve