PDA

View Full Version : CSS help please :)



tekni
16-12-2006, 04:30 PM
www.xvisor.connect-hosting.com/test

how do i set the background of the layer to show the image?

i've seen it on other sites and it looks fine :(

any ideas?

+rep to help that leads somewhere.

Invent
16-12-2006, 04:31 PM
Before anything, can I ask whats up with the coding?

"width:100%px;
height:100%px;"

100%px ?

tekni
16-12-2006, 04:32 PM
oh crap.

don't ask - im not too bright on the coding side.

Invent
16-12-2006, 04:33 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#topholder {
position:absolute;


background-image:url(http://www.xvisor.connect-hosting.com/test/topholder.png);
background-repeat:no-repeat;
width:100&#37;;
height:100%;
z-index:1;
left: 64px;
top: 19px;
}
#topbanner {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 180px;
top: 16px;
}
-->
</style>
</head>

<body>
<div id="topholder">
<div id="topbanner"></div>
</div>

</body>

</html>


There you go..I think lol

tekni
16-12-2006, 04:35 PM
one is topholder and one is topbanner.

it didn't help :(

edit: sorted now, it needs to be a defined width when using it as background :)

Invent
16-12-2006, 04:37 PM
I know I realised that I missread the IDs.

And gdgd you've sorted it (:

Want to hide these adverts? Register an account for free!