SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard trampt's Avatar
    Join Date
    Jan 2003
    Location
    Los Angeles, CA
    Posts
    1,997
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    overlaying transparent bg in anchor over an image?

    Ok ... so in the design attached below a client wants to add a bar over images depending on what category they are in. I thought I could just inject a class name into the anchor tag that the image is nested in and set a transparent background image that would overlay it. Of course this doesn't work. Any ideas??

    HTML
    Code:
    <div>
       <h2>Title for image</h2>
       <a href="#" class="general"><img src="" width="250" height="100" /></a>
    </div>
    CSS
    Code:
    a { display: block; width: 250px; height: 100px; background: url(/images/general.gif); }
    Attached Images Attached Images

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, I'm not really following what you're after and your attachment still needs approval.

  3. #3
    [Biped] LJK's Avatar
    Join Date
    Jun 2004
    Location
    In My Jammies
    Posts
    761
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi -
    Can't you just customize the images for the different sections?
    [Or make as a rollover effect if that's what's needed...]

    El
    F-Fox 2.0 :: WIN :: el design :: US


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
  •