Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xhtml] Wyrównanie w pionie do dołu.
hzl_91
post
Post #1





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 28.03.2006
Skąd: Częstochowa

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


Witam. Dzisiaj budując swój them na DIV 'ach napotkałem problem tzn. kiedy chcąc żeby tekst był wyrównany do dołu w jednym z divów nie mogłem tego uzyskać żadną metodą. Nie wiem, czemu. Obniżał się, ale nie do końca.

To mój kod css:
Cytat
#top_table_login {
border: 0px;
width: 100%;
height: 50%;
vertical-align: bottom;
}


Dlaczego nie wyrównuje do dołu?

Ten post edytował hzl_91 6.01.2007, 11:01:39
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
cadavre
post
Post #2





Grupa: Zarejestrowani
Postów: 472
Pomógł: 7
Dołączył: 7.12.2005
Skąd: Gliwice

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


Masz dwa elementy w jednym divie i tylko jednego chcesz umieścić na dole? Nie da się tak.

Zrób:
  1. <div id="top_table">
  2. <div id="top_table_title">
  3. <h1>Site title</h1>
  4. <h2>You little text about You site.</h2>
  5. </div>
  6. </div>
  7. <div id="other_div"
  8. <div id="top_table_login">
  9. <h3><a href="login/logout.html">Wyloguj [ <b>hzl_91</b> ]</a> | <a href="ucp.html">Twoje konto</a></h3>
  10. </div>
  11. </div>


i CSS:
  1. #top_table {
  2. border: 0px;
  3. margin: auto;
  4. padding: 0;
  5. background: url(images/top.jpg) repeat-x;
  6. width: 100%;
  7. height: 166px;
  8. }
  9. #top_table_title {
  10. border: 0px;
  11. width: 100%;
  12. height: 50%;
  13. text-align: left;
  14. }
  15. #other_div {
  16. height:100%;
  17. display:table;
  18. }
  19. #top_table_login {
  20. border: 0px;
  21. width: 100%;
  22. height: 50%;
  23. display:table-cell;
  24. vertical-align:bottom;
  25. }


EDIT: Tylko naturalnie sobie atrybut height dla #other_div wpisz odpowiedni.

Ten post edytował cadavre 6.01.2007, 18:44:16
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 15.10.2025 - 10:47