erum
11-20-2003, 07:01 PM
Hi,
I'm new to css. I'm trying to make a page layout where there is a left border and top border.
Now i've set the left border as a repeating pattern using this:
body {
background-color: #FBF9FA;
background-image: url(images/main/leftback.gif);
background-repeat: repeat-y;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #5A3657;
margin: 0px 0px 0px 0px;
padding:0;
}
Now the question is how do I get the top border to repeat as well? I can't have two body codes. I tried using a box:
.topleft {
background: #9966FF;
background-image: url(images/main/topback.gif);
padding : 0px;
margin: 0px;
border-width : 0px;
height: 71px;
width: 100%;
top: 0px;
left: 0px;
right: 0px;
}
This works fine in ie but in nn 4.72 it is placed a few pixels down from the top, starts to the right of the background image in the left bar and ends around 20 pixels before the right margin.
Second question is how do I get an image to display to the top right?
.endflower {
position: absolute;
left: auto;
right: 0px;
margin-right: 0px;
top: 0px;
width: 46px;
height: 71px;
}
works in ie but in nn 4.72 it stays to the top left. So I guess the right:0px does not work in nn 4.72. Any way around it?
I'm new to css. I'm trying to make a page layout where there is a left border and top border.
Now i've set the left border as a repeating pattern using this:
body {
background-color: #FBF9FA;
background-image: url(images/main/leftback.gif);
background-repeat: repeat-y;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #5A3657;
margin: 0px 0px 0px 0px;
padding:0;
}
Now the question is how do I get the top border to repeat as well? I can't have two body codes. I tried using a box:
.topleft {
background: #9966FF;
background-image: url(images/main/topback.gif);
padding : 0px;
margin: 0px;
border-width : 0px;
height: 71px;
width: 100%;
top: 0px;
left: 0px;
right: 0px;
}
This works fine in ie but in nn 4.72 it is placed a few pixels down from the top, starts to the right of the background image in the left bar and ends around 20 pixels before the right margin.
Second question is how do I get an image to display to the top right?
.endflower {
position: absolute;
left: auto;
right: 0px;
margin-right: 0px;
top: 0px;
width: 46px;
height: 71px;
}
works in ie but in nn 4.72 it stays to the top left. So I guess the right:0px does not work in nn 4.72. Any way around it?