SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist galt's Avatar
    Join Date
    Apr 2002
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Banner Background.

    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 ?

  2. #2
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup you can use CSS

    Code:
    <img src="banner.gif" width="100" height="75" style="background-color:#F45;" />
    Wavelan

  3. #3
    SitePoint Evangelist galt's Avatar
    Join Date
    Apr 2002
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmmm

    can I use

    <img ... class="css_class">

    and control the background in the style sheet ?

  4. #4
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup that works too
    Wavelan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •