Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML] Żeby stopka była zawsze na dole strony, niezależnie od rozdzielczości ;]
Legro
post 24.01.2009, 22:03:24
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 3
Dołączył: 18.07.2005

Ostrzeżenie: (40%)
XX---


Mam taki kod:

  1. <div id="footer">
  2. <p>Copyright 2009</p>
  3. </div>


  1. #footer {
  2. clear: both;
  3. width: 100%;
  4. margin: 0 auto;
  5. background: red;
  6. text-align: center;
  7. }


Jak zmienić cssa żeby stopka była zawsze na dole ekranu, niezaleznie od ilosci tekstu na stronie i rozdzielczosci?


--------------------
nospor - jestem z Wami !!!
Go to the top of the page
+Quote Post
piotrooo89
post 24.01.2009, 22:06:07
Post #2


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




jest tego trochę na googlach


--------------------
Go to the top of the page
+Quote Post
potreb
post 24.01.2009, 22:10:37
Post #3





Grupa: Zarejestrowani
Postów: 1 568
Pomógł: 192
Dołączył: 7.03.2005
Skąd: Warszawa

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


  1. <style type="text/css">
  2. #footer {
  3. clear: both;
  4. width: 100%;
  5. margin: 0 auto;
  6. background: red;
  7. text-align: center;
  8. position: absolute;
  9. bottom: 0px;
  10. left:0px;
  11. }
  12. </head>
  13. <body bgcolor="#FFFFFF">
  14. <div>
  15. <div id="footer">fff drer</div>
  16. </div>


Ten post edytował potreb 24.01.2009, 22:11:03


--------------------

Go to the top of the page
+Quote Post
Legro
post 24.01.2009, 22:13:14
Post #4





Grupa: Zarejestrowani
Postów: 233
Pomógł: 3
Dołączył: 18.07.2005

Ostrzeżenie: (40%)
XX---


Ok dzieki. Dodalem
  1. position: fixed;
  2. bottom: 0px;


--------------------
nospor - jestem z Wami !!!
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: 25.04.2024 - 15:41