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

Results 1 to 5 of 5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    rootw.net

    Default <img> background

    Hey guys,

    I was wondering if theres some way I could get something like this to serve as a background layer:

    Code: 
    //background layer
    <div>
    <img src="backgroundimg.png"/>
    </div>
    
    //layers above it
    <div>etc</div><div>more</div>
    I have an idea of I could make this work, but my method would be sort of unorthodox I think, and probably be glitchy.

    Thanks for your help
    narutoroot Reviewed by narutoroot on . <img> background Hey guys, I was wondering if theres some way I could get something like this to serve as a background layer: //background layer <div> <img src="backgroundimg.png"/> </div> Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    wrzc.org
    That's not the correct way to do it.
    PHP Code: 
    <div class="bitches">
        <
    div class="whore">
            <
    p>Example of Something here</p>
        </
    div>
    </
    div
    And then you have a CSS File
    PHP Code: 
    .bitches {
        
    background:#abcdef url(images/bg.png);
        
    etc etc.
    }
    .
    whore {
        
    color:#12345;
        
    padding:10px;
        
    margin:20px;
        
    etc etc.

    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  4.     
    #3
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Yeah, just do it on the bitches and whores method

    Defendos BETA3 Released! Thread - Official Website

  5.     
    #4
    Member
    Website's:
    rootw.net
    I know that I can do it that way, but I want to specifically use a <img tag instead of css :l

  6.     
    #5
    Respected Developer
    PHP Code: 
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd"
    >
    <
    html>
    <
    head>
        <
    title></title>
       <
    style type="text/css">
           .
    bottomDiv {
           
    // u can use z-index: 0; and same assign below to 1
           
    }
           .
    topDiv {
               
    positionabsolute;
               
    top:10px;
               
    left:20px;
               
    width:200px;
               
    height:25px;
               
    // z-index: 1; 
           
    }
       </
    style>
    </
    head>
    <
    body>
    <
    div class="bottomDiv">
     <
    img src="http://freaktools.com/images/logo.png" alt="">
    </
    div>
     <
    div class="topDiv">Here comes your content</div>
    </
    body>
    </
    html
    you can also use z-index as well.

    Edit: Plz change your avatar its so annoying, thank you
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Big Background
    By DROIDM4STER in forum Graphics Area
    Replies: 0
    Last Post: 29th Apr 2012, 06:03 PM
  2. Website Background
    By sarah1709 in forum Graphics Area
    Replies: 1
    Last Post: 31st Jul 2011, 08:28 AM
  3. Background image
    By puharta in forum Graphics Area
    Replies: 0
    Last Post: 3rd Mar 2011, 03:55 PM
  4. Log In Background
    By lig}{tning in forum vBulletin
    Replies: 0
    Last Post: 3rd Jan 2011, 01:10 PM
  5. Help Centering Background
    By Flash in forum vBulletin
    Replies: 6
    Last Post: 2nd Nov 2009, 06:57 PM

Tags for this Thread

BE SOCIAL