Let's say I am displaying a banner with a transparent background. As page designer, is there any way in HTML or CSS or anyway to control the background color underneath the banner? Like maybe some kind of background property of the <IMG> tag ?
| SitePoint Sponsor |
Let's say I am displaying a banner with a transparent background. As page designer, is there any way in HTML or CSS or anyway to control the background color underneath the banner? Like maybe some kind of background property of the <IMG> tag ?



yup you can use CSS
Code:<img src="banner.gif" width="100" height="75" style="background-color:#F45;" />
Wavelan
hmmmm
can I use
<img ... class="css_class">
and control the background in the style sheet ?



yup that works too
Wavelan
Bookmarks