lapek
14-04-2011, 15:15
Witam.
Mam na swojej stronie szablon o nazwie "Surf Beach".
Tam na górze jest logo/baner.
Jak zrobić żeby przylegał on do głównej części strony tzn. był na wysokości np. menu.
/* begin Header */
div.sub-header
{
margin: 0 auto;
position: relative;
z-index: -1;
width:900px;
height: 225px;
margin-top: 0;
margin-bottom: 0;
}
.sub-header-wrapper
{
position: relative;
width:900px;
margin:0 auto;
}
.sub-header-inner
{
margin: 0 5px;
}
div.sub-header-center
{
position: relative;
width: 900px;
left:50%;
}
/* end Header */
/* begin HeaderObject */
div.sub-headerobject
{
display: block;
left: 18%;
margin-left: -37px;
position: absolute;
top: 1px;
width: 233px;
height: 219px;
background-image: url('../images/header-object.png');
}
/* end HeaderObject */
/* begin Logo */
div.sub-logo
{
display: block;
position: absolute;
top: 77px;
right: 1%;
margin-right: 3px;
}
+ screen http://img705.imageshack.us/f/53180530.png/
Mam na swojej stronie szablon o nazwie "Surf Beach".
Tam na górze jest logo/baner.
Jak zrobić żeby przylegał on do głównej części strony tzn. był na wysokości np. menu.
/* begin Header */
div.sub-header
{
margin: 0 auto;
position: relative;
z-index: -1;
width:900px;
height: 225px;
margin-top: 0;
margin-bottom: 0;
}
.sub-header-wrapper
{
position: relative;
width:900px;
margin:0 auto;
}
.sub-header-inner
{
margin: 0 5px;
}
div.sub-header-center
{
position: relative;
width: 900px;
left:50%;
}
/* end Header */
/* begin HeaderObject */
div.sub-headerobject
{
display: block;
left: 18%;
margin-left: -37px;
position: absolute;
top: 1px;
width: 233px;
height: 219px;
background-image: url('../images/header-object.png');
}
/* end HeaderObject */
/* begin Logo */
div.sub-logo
{
display: block;
position: absolute;
top: 77px;
right: 1%;
margin-right: 3px;
}
+ screen http://img705.imageshack.us/f/53180530.png/