-
Transparency in DIV
Hello!
I have an image as the background of the text. I use this code:
HTML Code:
<style type="text/css">
.bgimg {
background: #ffffff url("...") no-repeat right top;
margin-right: 100px;
}
</style>
<div class="bgimg">
bla-bla
</div>
Unfortunately the rest of the background becomes white. You can see it on this page: http://nicolacoins.blogspot.bg/p/blog-page_13.html
How to preserve transparency? :)
-
Don't define the background as white. In other words, take out the #ffffff hexadecimal colour value.
-
Yes, or you can even specify transparent:
Code:
<style type="text/css">
.bgimg {
background: transparent url("...") no-repeat right top;
margin-right: 100px;
}
</style>
-
Oh, I'm so stupid. Many many thanks to both of you! :rolleyes: Worked beautifully!