...

View Full Version : absolute positioning not showing image??



jcdevelopment
10-26-2007, 04:58 PM
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>

Kor
10-26-2007, 05:09 PM
It is background


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

jcdevelopment
10-26-2007, 05:18 PM
ok i figured it out, the no-repeat was dropping the whole thing, i just specified.. thanks anyways guys..

abduraooft
10-26-2007, 05:36 PM
See the difference b/w background and background-image at http://www.w3schools.com/css/css_background.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum