Log In · Register

 
 
Closed TopicStart new topic
Does anyone know how?, Help
YourAveragexLove...
post Sep 17 2005, 12:53 PM
Post #1


Senior Member
***

Group: Member
Posts: 31
Joined: Sep 2005
Member No: 237,433



I am using this code and i want my background to be fixed and its not working. What can i do to make it fixed on the page?

</td></tr></table></td></tr></table></td></tr></table>
</div>


<style type="text/css">


.background {
background-image: url("http://img.photobucket.com/albums/v483/hard2wakeup182/Picture1222.jpg"); background-attachment: fixed;background-color: transparent; background-attachment: fixed;
position: absolute;
left: 50%;
top: 0px;
margin-left:-490px;
width: 980px;
height: 900px;
z-index:0;
}

.layer {
background-color: 000000;
position: absolute;
left: 50%;
top: 150px;
overflow: auto;
}
</style>

<div class="background">

</div>

<div style="display: none;">
<table><tr><td><table><tr><td><table><tr><td>
 
YourSuperior
post Sep 17 2005, 02:02 PM
Post #2


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Try this:
HTML
<style type=text/css>
body {
background: ###### url("http://img.photobucket.com/albums/v483/hard2wakeup182/Picture1222.jpg");
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
position: absolute;
left: 50%;
top: 0px;
margin-left:-490px;
width: 980px;
height: 900px;
z-index:0;
}

.layer {
background-color: 000000;
position: absolute;
left: 50%;
top: 150px;
overflow: auto;
}
</style>
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: