dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Newbie needs help!

  1. #1
    Join Date
    May 2003
    Location
    Seattle, Wa
    Posts
    23

    Newbie needs help!

    I have a .gif image that I am using as the background of an absolutely positioned div element.

    The trouble is- .gif automatically makes my pretty transparent background white when I save it and I need it to be transparent.

    In a wysiwyg editor, often I can select the image and use a 'wand' to tell it which color to hide. Once these images are in my div class, I can no longer select it... infact, even when they are not in the div I cannot select it in my editor to get at the 'wand'....

    Can anyone tell me how, with CSS, to make the white fields surrounding my images to disappear?

    There has got to be a simple way to do it and I have just missed something.

    Any direction would be appreciated.

    Amber

  2. #2
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    Is the white background on the image itself when you save it, or does the white background apply on the page when you insert it as a background?

    Haven't tested this, but try

    style="background: transparent url(mypic.gif) center no-repeat;"

  3. #3
    Join Date
    Dec 2002
    Location
    Canada, eh?
    Posts
    228
    it sounds more like how youre saving it...you may not be selecting the "transparent" option...which image editor do you use?

  4. #4
    Join Date
    May 2003
    Location
    Seattle, Wa
    Posts
    23
    Thanks guys!

    I think Da Warriah was right-- I was not paying close enough attention to how I was saving it.

    Also, it seemed to cooperate better and show correctly once I uploaded it... may just have been a limitation of my wysiwyg editor...

    Ah well... always something!

    Thank you again for your input.

    Amber

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles