CSS Help with Images
Posted: Mon Jun 09, 2008 1:16 pm
Im trying to call images through CSS onto my page, so if i ever want to change the images, i can do it through CSS. I have a problem however. I do not know the CSS codes for images.
Heres my html:
Heres my CSS:
Please Help. Ive looked for tuts online but nothing helpful came up for CSS and image commands.
Heres my html:
Code: Select all
<div align="center" valign="top" id="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="2%""><div align="right"><img id="left"></div></td>
<td width="96%" id="middle"><div align="center"><img id="middle"></div></td>
<td width="2%"><div align="left"><img id="right"></div></td>
</tr>
</tbody></table>
</div>
Code: Select all
img#left {
image-source: url("./images/header_left.png");
}
td#middle {
background-image: url(./images/header_main.png);
}
img#middle {
background-image: url(./images/header_text.png);
}
img#right {
image-source: url(./images/header_right.png);
}