|
|
#1 (permalink) |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
|
Div issue with background
I'm trying to make a layout (that's fluid I think...?)
But whenever it starts to scroll, the background doesn't match the image. Click & See The css is: Code:
body{
background: #2B452C url(http://tyl.cc/images/random_bg_l.jpg) repeat-y left;
overflow: hidden;
}
#container{
background: url(http://tyl.cc/images/random_bg_r.jpg) repeat-y right;
overflow: auto;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
}
#topbar{
background: url(http://tyl.cc/images/random_02.jpg) repeat-x;
width: 100%;
position: absolute;
left: 0px;
top: 0px;
height: 500px;
}
#topleft{
left: 0px;
top: 0px;
background: url(http://tyl.cc/images/random_01.jpg) repeat-x;
width: 401px;
height: 500px;
position: absolute;
}
#topright{
right: 0px;
top: 0px;
background: url(http://tyl.cc/images/random_03.jpg) repeat-x;
width: 345px;
height: 500px;
position: absolute;
}
#menu{
position: absolute;
top: 279px;
right: 20px;
width: 180px;
}
Code:
<div id="container"> <div id="topbar"></div> <div id="topleft"></div><div id="topright"></div> <div id="menu"> <!-- Menu --> Menuness <!-- Menu --> </div> </div> |
|
|
|
|
|
#3 (permalink) | |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
|
Quote:
In firefox, the right navigation background doesn't match up with the image. |
|
|
|
|
|
|
#4 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Nov 2005
Lives in Florence
18 posts
Gave thanks: 0
Thanked 0 times
|
Code:
body{
background: #2B452C url(http://tyl.cc/images/random_bg_l.jpg) repeat-y left;
overflow: hidden;
}
Code:
body {
background: #2B452C;
background-image: url(http://tyl.cc/images/random_bg_l.jpg);
background-repeat: repeat-y;
background-position: left;
overflow: hidden;
}
![]() If that doesn't work then I dunno xD |
|
|
|