Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts

    Arrow absolute positioning not showing image??

    What am i doing wrong here, it wont show up when i do absolute, when i do fixed or relative it will. Doesnt show in any browser??!!

    CSS:
    #bgimage {
    position: absolute;
    background-image: url(bg.gif) no-repeat;
    margin-top:0px;
    margin-left:300px;
    height:1000px;
    width:500px;
    }

    HTML:
    <div id="bgimage">&nbsp;</div>

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    It is background
    Code:
    #bgimage {
    position: absolute;
    background: url(bg.gif) no-repeat;
    margin-top:0px;
    margin-left:300px;
    height:1000px;
    width:500px;
    }
    Last edited by Kor; 10-26-2007 at 04:12 PM.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    ok i figured it out, the no-repeat was dropping the whole thing, i just specified.. thanks anyways guys..

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    See the difference b/w background and background-image at http://www.w3schools.com/css/css_background.asp
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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