Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> centrowanie, kwadratura koła....
Kirtan Loor
post 21.02.2005, 15:38:42
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 22.10.2004
Skąd: Płock

Ostrzeżenie: (0%)
-----


Mam pytanko, bo nie moge sobie poradzic.

css
Kod
@charset "iso-8859-2";
/* CSS Document */
body {
background-color:#CDCBCD;
margin:0px;
}

#main {
background-image: url(images/background.jpg);
background-repeat:repeat-y;
height: 100%;
width:650px;
margin:auto;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.middle {
padding: 10px;
}


Pragne uzyskac aby #main bylo jednoczesnie po srodku i rozciagniete na 100% wysokosci strony. Poki co udaje mi sie osiagnac albo jedno albo drugie.... Mianowicie: przy nie zastosowaniu position: absolute. strona owszem ladnie sie centruje, ale nie jest rozciagnieta na 100%, z kolei przy zastosowaniu jest dokladnie odwrotnie: strona do lewej ale 100% wysokosci. help:)


--------------------
A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes
Portants surcots et justes cottes,A cuidereaux d'amour transis,
Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis.
Go to the top of the page
+Quote Post
orson
post 21.02.2005, 22:02:36
Post #2





Grupa: Zarejestrowani
Postów: 548
Pomógł: 2
Dołączył: 19.07.2003

Ostrzeżenie: (0%)
-----


witam ...

dodaj height: 100% dla html i body ... powinno pomoc

pozdrawiam


--------------------
Computer games don't affect kids; I mean if <span style="font-weight: bold;">Pac Man</span> affected us as kids,we would all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.
Go to the top of the page
+Quote Post
Volume
post 21.02.2005, 22:12:53
Post #3





Grupa: Zarejestrowani
Postów: 283
Pomógł: 11
Dołączył: 11.10.2004
Skąd: 3c

Ostrzeżenie: (10%)
X----


Ja bym to zrobil inaczej ale nie wiem dokładnie czy moze o to ci chodzi:

Kod
@charset "iso-8859-2";
/* CSS Document */
body {
background-color:#CDCBCD;
margin:0px;
text-align: center;
}

#main {
background-image: url(images/background.jpg);
background-repeat:repeat-y;
height: 100%;
width:650px;
margin: 0 auto;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.middle {
padding: 10px;
}
dla body dodać text-align: center; a dla #main margin: 0 auto;

Ten post edytował Volume 21.02.2005, 22:16:08
Go to the top of the page
+Quote Post
Kirtan Loor
post 22.02.2005, 16:59:25
Post #4





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 22.10.2004
Skąd: Płock

Ostrzeżenie: (0%)
-----


Cytat(orson @ 2005-02-21 21:02:36)
witam ...

dodaj height: 100% dla html i body ... powinno pomoc

pozdrawiam

well jest spox dopoki strona nie jest wieksza niz 100% bo wtedy sie fajne rzeczy pokazuja. A min-height nie dziala:/


--------------------
A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes
Portants surcots et justes cottes,A cuidereaux d'amour transis,
Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis.
Go to the top of the page
+Quote Post
Volume
post 22.02.2005, 17:48:47
Post #5





Grupa: Zarejestrowani
Postów: 283
Pomógł: 11
Dołączył: 11.10.2004
Skąd: 3c

Ostrzeżenie: (10%)
X----


Ja troche nie rozumiem pytania. Możesz dokładnie powiedzieć oo chcesz osiągnąć? Podałeś tylko kod css'a.
Czy chodzi o div rozciągnięty w pionie na 100%? Czy coś innego? Czy to co ja podałem również nie działa?

Ten post edytował Volume 22.02.2005, 17:49:57
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 5.07.2025 - 15:58