Log in

View Full Version : 2 background images Q?



bokanegro
10-30-2008, 01:13 PM
Hi,

On my page there is background image inserted via css with simple tag:


background: url(../bg/bg1.jpg) repeat-y center top fixed;

and now I need to insert fixed div...

Position of that div must be bottom right, and need to be fixed when scrolling my page. That div will also contain background image.

So if any one know what and how... just write or place link ....

Thank's

TheJoshMan
10-30-2008, 09:00 PM
<style type="text/css">
div.bottright{
position:fixed;
bottom:0;
right:0;
background:url('blah.jpg') no-repeat 0 0;
}
</style>
</head>
<body>
<div class="bottright">

</div>

bokanegro
10-31-2008, 07:27 AM
Thank you for your help

Just one thing:

In style:


<style type="text/css">
div.bottright{
position:fixed;
bottom:0;
right:0;
background:url('blah.jpg') no-repeat 0 0;
}
</style>


Must define width and height



<style type="text/css">
div.bottright{
position:fixed;
bottom:0;
right:0;
width: 100px;
height: 100px;
background:url('blah.jpg') no-repeat 0 0;
}
</style>


Or background wont be shown ..

Mucas gracias conpadre

TheJoshMan
10-31-2008, 07:40 PM
denada