Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> 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
goldmann
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 20.11.2004
Skąd: Polska :P

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


A jesteś pewien, że div posaida taki atrybut? (IMG:http://forum.php.pl/style_emoticons/default/dry.gif)
Go to the top of the page
+Quote Post
GrayHat
post
Post #3





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

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


to czego uzyc??
Go to the top of the page
+Quote Post
goldmann
post
Post #4





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 20.11.2004
Skąd: Polska :P

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


Powiedz mi, co chcesz osiągnąć.
Go to the top of the page
+Quote Post
wassago
post
Post #5





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
goldmann
post
Post #6





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 20.11.2004
Skąd: Polska :P

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


Cytat(wassago @ 2004-11-22 19:52:18)
co? atrybutem tego diva jest 'id' i 'style' a atrybutem stylu jest 'vertical-align'..

Ok, to źle się wyraziłem. Zgadzam się, że jest, tylko nie działa - więc tak jakby go nie było.
Go to the top of the page
+Quote Post
BugTomek
post
Post #7





Grupa: Zarejestrowani
Postów: 23
Pomógł: 1
Dołączył: 24.04.2004

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


Jeśli chcesz tam wstawić nie więcej niż jedną linijkę tekstu to posłuż się parametrem line-height. Dopisz po prostu line-height: 100px; Przy bardziej skomplikowanych rzeczach musisz używać marginesów (odradzam padding)
Go to the top of the page
+Quote Post

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: 22.08.2025 - 13:29