mich8
23-03-2011, 18:15
Witam
Koledzy mam mały problem z ustawieniem loga na mojej stronie, wiem że jest dużo takich tematów ale żaden mi nie momógł. Bawię się CSSem już kilka dni ale za każdym razem coś jest nie tak z jego ustawieniem pod różnymi rozdzielczościami. Logo mojej strony jest w DIVie "logo".
Tutaj fragment mojego kodu PHP:
<div class="center" align="center">
<div id="wrapper">
<div id="wrapper_r">
<div id="header">
<div id="header_l">
<div id="header_r">
<div id="logo" align="center">
</div>A tutaj fragment mojego kodu CSS:
#page_bg {
padding: 10px 0;
margin-bottom: 1px;
}
div.center {
text-align: center;
}
div#wrapper {
margin-left: auto;
margin-right: auto;
}
body.width_medium div#wrapper {
width: 950px;
}
body.width_small div#wrapper {
width: 773px;
}
body.width_fmax div#wrapper {
min-width: 750px;
max-width: 1050px;
}
div#header_l {
position: relative;
}
div#header_r {
height: 90px;
float: center;
padding-top: 25px;
overflow: hidden;
text-align: center;
}
div#logo {
position: absolute;
top: 0;
float: center;
width: 1010px;
height: 90px;
margin: center;
background: url(../images/logo_cegla_2.png) 0 0 no-repeat;
margin-top: 25px;
}Będę wdzięczny za każdą pomoc.
Koledzy mam mały problem z ustawieniem loga na mojej stronie, wiem że jest dużo takich tematów ale żaden mi nie momógł. Bawię się CSSem już kilka dni ale za każdym razem coś jest nie tak z jego ustawieniem pod różnymi rozdzielczościami. Logo mojej strony jest w DIVie "logo".
Tutaj fragment mojego kodu PHP:
<div class="center" align="center">
<div id="wrapper">
<div id="wrapper_r">
<div id="header">
<div id="header_l">
<div id="header_r">
<div id="logo" align="center">
</div>A tutaj fragment mojego kodu CSS:
#page_bg {
padding: 10px 0;
margin-bottom: 1px;
}
div.center {
text-align: center;
}
div#wrapper {
margin-left: auto;
margin-right: auto;
}
body.width_medium div#wrapper {
width: 950px;
}
body.width_small div#wrapper {
width: 773px;
}
body.width_fmax div#wrapper {
min-width: 750px;
max-width: 1050px;
}
div#header_l {
position: relative;
}
div#header_r {
height: 90px;
float: center;
padding-top: 25px;
overflow: hidden;
text-align: center;
}
div#logo {
position: absolute;
top: 0;
float: center;
width: 1010px;
height: 90px;
margin: center;
background: url(../images/logo_cegla_2.png) 0 0 no-repeat;
margin-top: 25px;
}Będę wdzięczny za każdą pomoc.