Activity Stream
48,167 MEMBERS
6638 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Default what's wrong with this code?

    Okay, here's the problem.
    I have a background image and then an image i need to go over that.
    here's my current code:

    html:
    Code: 
    <div class="shadow">
    <img src="./images/bg-shadow.png" style="position: relative;">
    
    </div> 
    
    <div class="body">
    <img src="./images/body_bg-bg.png" style="position: relative;">
    </div>
    CSS:
    Code: 
    .shadow { 
    position:absolute;  
    z-index:0; 
    } 
    
    } 
    .bodybg { 
    position:absolute; 
    z-index:1;
    }
    The <div class="shadow"> wont center, unless i remove the " from style="position: relative;">, but if I do that, the second image, <div class="body">, doesn't work. It's odd, it should work? right?
    iL < Reviewed by iL < on . what's wrong with this code? Okay, here's the problem. I have a background image and then an image i need to go over that. here's my current code: html: <div class="shadow"> <img src="./images/bg-shadow.png" style="position: relative;"> </div> Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Use Css Code Like This
    .bodybg {
    background-image: url(/images/body_bg-bg.png);
    position:absolute;
    z-index:1;
    }

  4.     
    #3
    Member
    that still didn't let the images center, thanks for trying though

  5.     
    #4
    Banned
    ok .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 3rd Apr 2012, 09:50 AM
  2. whats wrong with the code
    By zebono2 in forum Web Development Area
    Replies: 2
    Last Post: 7th Jan 2012, 11:33 PM
  3. Replies: 1
    Last Post: 27th Aug 2011, 01:45 PM
  4. Is there something wrong with this code
    By Daniel in forum General Discussion
    Replies: 1
    Last Post: 28th Mar 2010, 01:31 PM
  5. [vBulletin BB Code] Moderated Message: (Like W-BB's Staff BB Code!)
    By Ghost Dog 13 in forum Webmaster Resources
    Replies: 13
    Last Post: 26th Sep 2009, 06:19 PM

Tags for this Thread

BE SOCIAL