Results 1 to 7 of 7

Thread: Can CSS do this with images?

  1. #1
    Join Date
    Mar 2007
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can CSS do this with images?

    Can CSS force the little image to not show up?

    Please help me if possible.

    P.S. If this is possible with another programming language refer me to it.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That is a preference set in the browser. You can avoid it by not having any missing images. Missing image icons can occur for various reasons, sometimes even when the image s present. When this happens, depending upon the reason, there is often a way to prevent it. If this is what is happening to you, to know what to tell you to do, I would need to know the reason:

    Please post a link to your problem page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well I am trying to make my site skinnable, and my navigation bar is made from an image map. So if I skin it, it will read another style sheet, changing the color scheme, but not the navigation bar colors. So I thought what if I make the image my background image for that div, leave the image map intact but take out the url of the picture leaving it blank since the hotspots of the image map will be the same on all images. To see what I mean go to http://cyanideperfection.net.

    I also tried making the image used for the map a 2x2 pixel image that wouldn't be noticed b/c it blended in with the background. However it stretched it out to fit the map. If you know a way around that problem, that would be the optimal way to go. Again, to see my problem go to http://cyanideperfection.net

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use a 2x2 transparent .png or .gif.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2007
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I thought of it, but I don't know how to make it transparent. Do you mean transparent as in styling it in my style sheet or can you literally create a transparent image?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, create a real transparent image. If you don't know how to, you can use my one (right-click and save as).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    There's really no call to use an image map here, though. If I were you, I'd use a separate image for each link. Also, your page is invalid and uses a Transitional DOCTYPE.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •