Forums
This topic is locked
How do i place an image .gif as background in div
Posted 21 Nov 2005 12:43:54
1
has voted
21 Nov 2005 12:43:54 Rikardo Ribas posted:
Hello i could use the code to place an image (.gif) in a div an then place another image on top of background! Replies
Replied 22 Nov 2005 11:12:34
22 Nov 2005 11:12:34 Dave Thomas replied:
sample css is shorthand (url, repeat properties, position, background color)
<pre id=code><font face=courier size=2 id=code>
#somedivname{
background: url("yourpic.gif"
no-repeat top #000
}</font id=code></pre id=code>
in the html,
<pre id=code><font face=courier size=2 id=code>
<div id="somedivname"> <img src="imageontop.gif" hieght="" width=""></div>
</font id=code></pre id=code>
regards
Dave Thomas
<b>DMX Zone Manager</b>
<pre id=code><font face=courier size=2 id=code>
#somedivname{
background: url("yourpic.gif"

}</font id=code></pre id=code>
in the html,
<pre id=code><font face=courier size=2 id=code>
<div id="somedivname"> <img src="imageontop.gif" hieght="" width=""></div>
</font id=code></pre id=code>
regards
Dave Thomas
<b>DMX Zone Manager</b>