Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Need some help with an image placement on my website! Re: Need some help with an image placement on my website!

#73359
neliuz
Member

Hei guys :)

Thanks for your help! It works, but i got another problem..
The ornament img is partly displayd on the screen.. it looks like it is behind an element!
I did what you told me to cybershot. The main is the parent element and it´s relative positioned
but i have the same problem :(
Here is the css code (dno if you need the html):

body {
margin:0px; padding:0px;
background-color:#413C29;
overflow: visible;
}

#main {
background: url(../images/bg.png) repeat-x;
position: relative;
}

#main .conta iner {
background-image: url(../images/background_light.jpg);
background-repeat:no-repeat;
min-height:400px;

}

#footer {
background-image:url(../images/background_footer_light.jpg);
background-repeat:repeat-y;
color:white;
padding:40px;
}

.container {
width:950px;
margin:0 auto;
position:relative;
}

#header {
padding-top:10px;
}

#logo h1, #logo small {
margin:0px;
display:block;
text-indent:-9999px;
}

#logo {
background-image:url(../images/logo.png);
background-repeat:no-repeat;
width:673px;
height:183px;
margin-left: -120px;
}

#navigation {
position: relative;
width: 950;
margin: 0 auto;

}

ul#menu {
margin:0 81.5px 0 0; padding:0px;
position: absolute;
right:0px;
height: 74px;
width: ;
top: -20px;
}
ul#menu li a:hover {
background: url(../images/hover_arrow.png) no-repeat scroll center 73px;
text-align: center;
font-weight: bold;
color: white;
font-size: 18px;
display: block;
width: 130px;
height:62px;
text-decoration: none;
margin-top: -26px;
padding: 23px 0 0 0;
}

ul#menu li {
display: inline;
width: 130px;
height:55px;
text-align: center;
float: left;
text-decoration: none;
background: url(../images/nav_line.png) no-repeat scroll 0px 0px;
margin-top: -22px;
padding: 23px 0 0 0;
outline: none;
}
ul#menu li a {
text-align: center;
font-weight: bold;
color: white;
font-size: 18px;
display: block;
width: 130px;
height:55px;
text-decoration: none;
overflow: hidden;

}
ul#menu li#line {
display: block;
width: 2px;
height:40px;
float: left;
background: url(../images/nav_line.png) no-repeat scroll 0px 0px;
margin-top: -22px;
padding: 23px 0 0 0;
}

#main img#ornament {

background-repeat:no-repeat;
position: absolute;
top: 0px ;
right: 0px;

}