Results 1 to 4 of 4

Thread: Image over a Background Image?

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image over a Background Image?

    Not sure what I'm doing wrong here...

    I have one large image, and I want another image being used as a button placed over it. Whatever I'm doing, it seems to push space after the bottom of the big image. Is there any quick and easy sure-fire way to do this. I feel like a big doof right now.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

    Please include your code so that we can take a look at it, we can't do much without it. When you do post your code remember to use [code] tags. That includes [ html ], [ code ], and [ php ].
    Jeremy | jfein.net

  3. #3
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    Just like in physics, two bits of mass can't occupy the same space at the same time. Make the first image a background and the second image can be placed over the top of it and positioned using CSS.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Alternatively you can use absolute positioning (and/or other things) and use the z-index to raise or lower the "depth" of each image respectively.
    It's possible, but can get complex.

    Using a background image and then an image object on top makes the most sense if that is possible.

    Something else you could consider is using an image map or maybe even slices (chopping an image into smaller chunks so that some can have different properties than others), and in both of those you could set a portion of the image as a link, etc.

    If this is just for graphic purposes it might be easier to do this in a graphics program then save the flattened image rather than trying to do it in html.


    And of course it things get complex, you can always turn to flash.


    So the real question is what your goal is with all of this and then the solution will become clear.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •