Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z DIV
GrayHat
post
Post #1





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

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


czemu ten kod nie dziala:

  1. <div id="top2" style="vertical-align: middle; text-align: center; background-image: url('img2.jpg'); width: 790px; height: 100px; margin-left: auto; margin-right: auto;">


chodzi o vertical-align diva. mimo iz daje middle, to tekst sie wyswietla jako top :/ tak jakby nie dzialal :/ prosze o pomoc

Ten post edytował GrayHat 22.11.2004, 18:13:43
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
wassago
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 701
Pomógł: 0
Dołączył: 26.06.2002
Skąd: Londyn

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


Cytat
A jesteś pewien, że div posaida taki atrybut?
ze co? atrybutem tego diva jest 'id' i 'style' a atrybutem stylu jest 'vertical-align'..
co do problemu, zerknij na ten przyklad:
  1. <div style="position: relative; width: 300px; height: 300px; border: solid 1px red;">
  2. <div style="width: 100px; height: 100px; border: solid 1px yellow; position: absolute; left: 50%; top: 50%; text-align: center; margin-left: -50px; margin-top: -50px;"></div>
  3. </div>
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: 24.12.2025 - 15:09