I am trying to add background-color behind my transparent background-image and it's not working. I want it in the div called "heading". I tried using a png file first and then a gif file. I thought all gif's were transparent images. Any help would be appreciated.
#heading {
background-image: url(http://bartonlewis.com/_images/pg_p_lewis_bckgrnd.gif);
background-size: 978px 1587px;
background-repeat: no-repeat;
background-blend-mode: screen;
background-color: rgba(255, 230, 184, 0.56);
position: relative;
height:100%;
height: 230px;
width: 960px;
}
#content {
float: left;
height: 1800px;
width: 960px;
font-size: 1.1em;
line-height: 1.2em;
z-index:1;
position:relative;
}
div#heading p {
font-size: 72px;
text-align: center;
margin: 100px 0;
letter-spacing: 2px;
}
#colD {
width: 320px;
float: left;
text-indent: -999px;
}
#colE {
width: 30px;
float: left;
}
#colF {
width: 250px;
float: left;
text-align: center;
letter-spacing:.1em;
font-family: "amador";
font-variant: normal;
font-size: 1.5em;
}
#colG {
width: 10px;
float: left;
}
#colH {
width: 350px;
float: left;
}
.floral-icon {
vertical-align: middle;
}
#colG img {
-ms-transform: rotate(180deg); /* IE 9 */
-webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
transform: rotate(180deg);
}
<div id="background">
</div>
<div id="content">
<div id="heading">
<div id="colD">empty</div>
<div id="colE"><p><img class="floral-icon" src=http://bartonlewis.com/_images/pg_p_lewis_icon.png width="32" height="32"></p></div>
<div id="colF"><p>Lewis</p></div>
<div id="colG"><p><img class="floral-icon" src=http://bartonlewis.com/_images/pg_p_lewis_icon.png alt="floral icon" width="32" height="32"></p></div>
<div id="colH"></div>
</div>
background: #F0D8AB url(_images/pg_p_lewis_bckgrnd.gif) 987px 1587px no-repeat;
- it should work. There is no decimals on PX-measurements, btw. Wait... you're trying to set a background image on a<div>
that is not part of the rest of the content - if you want to place that div above the rest, you will have to give it az-index
as well, is my guess. Would have tested, but since you didn't use an actual url for the images, I dunno what they look like. – Zeiglerhttp://
links to their actual location. – Zeigler