More CSS Help plz

Permabanned
Joined
19 Apr 2006
Posts
2,333
Location
West Yorkshire
I am trying to put an image on the page using css.

So what am I doing wrong here:

html
Code:
		<div class="fslimgcallnow">
			&nbsp;
		</div>

CSS
Code:
div#fslimgcallnow { background: url(skins/clearstyle/img/callnow.png) no-repeat top;  height: 107px;  width: 60%; float: right; }


Any help is appreciated!
 
just use

#fslimgcallnow { background: url(skins/clearstyle/img/callnow.png) no-repeat top; height: 107px; width: 60%; float: right; }

you don't need to use div in the css.

also try using
#fslimgcallnow {
background: url(skins/clearstyle/img/callnow.png);
background-repeat: no-repeat;
height: 107px;
width: 60%;
float: right;
}

try using background no repeat on its own, if its image not sure why your height is in px and width is in percentage? can you not make it both px or percentage values?
 
Last edited:
Back
Top Bottom