Log In · Register

 
 
Closed TopicStart new topic
background image scrolling in DIV layers (help please)
sensime3na
post Nov 25 2006, 01:33 PM
Post #1


Newbie
*

Group: Member
Posts: 8
Joined: Nov 2006
Member No: 482,912



So here's my problem, I'm trying to update my myspace with div layering. Everything's all fine except for the background-image function within the div class definition (is that the correct terminology?).

So here's the deal:

why does the "background-attachment: fixed"

element display differently in IE then in Firefox? Is there a way to remedy this?

See what I'm trying to do is get a div 'box' to scroll with an image in the background that stays in a fixed position, but I can't seem to get it to work in both display browsers.

Help-- please??


Here's my code:


<style type="text/css">


table {visibility:hidden;}


div table tbody tr td a.navbar,


table tr td script {visibility:visible !important}


table tbody tr td a.navbar,
table tbody tr td input,
table tbody tr td font
{visibility:visible;}


body table td {background-color: transparent;}


table tbody table tbody td {visibility:hidden;}


table tr td div div{display:none;}


div table tbody tr td form input,
div table tbody tr td a img,
div table tbody tr td div a,
div table tbody tr td
{visibility: visible !important; color:red;}


a:link {color: A7596A}
a:visited {color: A7596A}
a:hover {color: A7596A}
a:active {color: A7596A}


a, a.man, a:link, a:visited
{font-family: arial; font-color: A7596A; font-size:10pt; font-weight:normal; text-decoration:none; font-style:normal; line-height: 15px;}

a:active, a:hover{font-family: arial; color:A7596A; font-size:10pt; font-weight:normal;font-style:normal; line-height: 15px;}

td, table, tr, span, li, p, div, textarea, DIV
{font-family:arial; color:A7596A; font-weight:normal; font-decoration:none; font-style:normal; line-height:15px;background-color:transparent}

td, li, p, div, textarea
{font-family: arial; border-color:black; line-height: 15px}

table{border-color:FFFFFF}

p {color: A7596A)}

a.navbar{font-family:arial; font-size:10pt; font-weight:normal; line-height: 15px}
a.navbar:link{color:A7596A;}
a.navbar:active{color:A7596A;}
a.navbar:visited{color:A7596A;}
a.navbar:hover{color:A7596A;}
a.searchlinkSmall{font-family:arial; font-size:10pt; text-decoration:none; font-weight:normal; line-height: 15px}
a.searchlinkSmall:link{color:A7596A}
a.searchlinkSmall:active{color:A7596A}
a.searchlinkSmall:visited{color:A7596A}
a.searchlinkSmall:hover{color:A7596A}

body{font-family:arial; background-color:A7596A;}


body{scrollbar-arrow-color:A7596A;
scrollbar-Track-Color:white;
scrollbar-Highlight-Color:white;
scrollbar-base-color:white;
scrollbar-Face-Color:white;
scrollbar-Shadow-Color:white;
scrollbar-DarkShadow-Color:white}


.nametext{font-family:arial;font-size:18pt;color:A7596A; font-weight:bold;}
.blacktext10{font-family:arial; font-size:10pt; color:A7596A; font-weight:normal;}
.white{font-family:arial; font-size:10pt; color:A7596A; font-weight:normal; line-height: 15px}
.btext, .itext, .text{font-family:arial, times new roman;font-size:10pt; color:A7596A; font-weight:normal; line-height: 15px} .orangetext15{font-family:arial; color:A7596A; font-weight:normal; line-height: 15px}
.whitetext8{font-family:arial; font-size:10pt; color:A7596A; font-weight:normal; line-height: 15px}
.tmz_imp{font-family:arial;color:A7596A;font-weight:bold}
a img{}
a:hover img{}

</style>

<style>

.top {background-color:white;
background-image:url('http://pinay.us/myspace/top.jpg');
background-repeat: no-repeat;
position: absolute;
left: 50% ;
top: 125px;
margin-left:-400px;
width: 749px;
height: 62px;
z-index:3;
visibility:visible !important;
overflow:hidden; border:0px solid black}

.box1 {background-color:transparent;
position: absolute;
left: 50% ;
top: 187px;
margin-left:-400px;
width: 350px;
height: 367px;
z-index:1;
visibility:visible !important;
overflow:hidden; border:0px solid black}


.background {background-color:white;
background-image:url('http://pinay.us/myspace/box2.jpg');
background-attachment: fixed;
background-repeat: no-repeat;
position: absolute;
left: 50% ;
top: 187px;
margin-left:-61px;
width: 410px;
height: 367px;
z-index:0;
visibility:visible !important;
overflow:hidden;}

.box2 {background-color:transparent;
background-image:url('http://pinay.us/myspace/box2.jpg');
background-repeat: no-repeat;
position: absolute;
left: 50%;
top: 187px;
margin-left:-61px;
width: 410px;
height: 367px;
z-index:2;
visibility:visible !important;
overflow:auto; border:0px solid black}


.box3 {background-color:white;
background-image:url('http://pinay.us/myspace/box3.jpg');
background-repeat: no-repeat;
position: absolute;
left: 50% ;
top: 554px;
margin-left:-400px;
width: 267px;
height: 243px;
z-index:1;
visibility:visible !important;
overflow:auto; border:0px solid black}


.box4left {background-color:white;
position: absolute;
left: 50% ;
top: 797px;
margin-left:-400px;
width: 5px;
height: 307px;
z-index:1;
visibility:visible !important;
overflow:auto; border:0px solid black}


.box4 {background-color:white;
position: absolute;
left: 50% ;
top: 797px;
margin-left:-395px;
width: 267px;
height: 307px;
z-index:1;
visibility:visible !important;
overflow:auto; border:0px solid black}

.box5 {background-color:white;
position: absolute;
left: 50% ;
top: 554px;
margin-left:-133px;
width: 482px;
height: 550px;
z-index:1;
visibility:visible !important;
overflow:hidden; border:0px solid black}


.bottom {background-color:white;
background-image:url('http://pinay.us/myspace/bottom.jpg');
background-repeat: no-repeat;
position: absolute;
left: 50% ;
top: 1104px;
margin-left:-400px;
width: 749px;
height: 62px;
z-index:3;
visibility:visible !important;
overflow:hidden; border:0px solid black}


</style>
 
whomps
post Nov 25 2006, 06:51 PM
Post #2


:hammer:
*******

Group: Staff Alumni
Posts: 9,849
Joined: Mar 2004
Member No: 7,700



Do you happen to have a link to where this problem is occurring ?
 
sensime3na
post Nov 25 2006, 09:46 PM
Post #3


Newbie
*

Group: Member
Posts: 8
Joined: Nov 2006
Member No: 482,912



i figured this one out finally by using an !important 'thing'...
thanks anyway.
:)


QUOTE(x_angawhomps @ Nov 25 2006, 3:51 PM) *
Do you happen to have a link to where this problem is occurring ?
 

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