View Full Version : Background


psychobunnie
04-17-2006, 02:57 PM
I a small image this size: 188 x 284... i want to use this picture as my background fixed in the top left corner and bottom right corner. does anyone know if i can do that using css? right now i have it not repeating in the top left corner... but i want it in the bottom right corner as well.

Douglas
04-17-2006, 05:52 PM
You can't give a single element one background, sorry... :(

----
Vote for douglas3131 in the most helpful user GMA! :D (http://www.lissaexplains.com/forum/showthread.php?t=52673)

CJX
04-17-2006, 06:04 PM
Try this:

<html>
<head>
<title>BOO</title>
<style type="text/css">
body {
background: url('back.jpg') #FFF top left;
}
div#body2 {
background: url('back.jpg') #FFF bottom right;
width: 100%;
height: 100%;
}
</style>
</head>
<body><div id="body2">
<!-- CONTENT GOES HERE -->
</div></body2>
</html>

I'm not sure if I got the positioning css right, but you get my gist, right?