PDA

Zobacz pełną wersję : Położenie loga przy zmianie rozdzielczości.



tinca2
05-06-2007, 00:47
Witam.
Przy oglądaniu mojej przyszłej strony w wyzszej rozdzielczości niż 1024x768,logo zostaje po lewej stronie,a z prawej pozostaje luka.Co wpisać i gdzie aby logo było zawsze centralnie położone.
#header {
background: #000 url(../images/sc_title.png) 0 0 no-repeat;
width: 1000px;
height: 170px;
}
Pozdro All.

Rybik
05-06-2007, 01:26
#header {
background: #000 url(../images/sc_title.png) center center no-repeat;
width: 1000px;
height: 170px;
}

tinca2
05-06-2007, 14:58
#header {
background: #000 url(../images/sc_title.png) center center no-repeat;
width: 1000px;
height: 170px;
}

Niestety dalej logo pozostaje po lewej stronie.http://www.pompczak.eu
Dodałem marginesy z wartością auto i mam centralne położenie tak jak chciałem.
#header {
background: #000 url(../images/sc_title.png) 0 0 no-repeat;
width: 1000px;
height: 170px; margin-left:auto;
margin-right:auto;
}