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>
&lt;div id="somedivname"&gt; &lt;img src="imageontop.gif" hieght="" width=""&gt;&lt;/div&gt;
</font id=code></pre id=code>

regards

Dave Thomas
<b>DMX Zone Manager</b>

Reply to this topic