Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z DIV
GrayHat
post 22.11.2004, 18:12:00
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


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
goldmann
post 22.11.2004, 18:26:43
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? dry.gif


--------------------
Goldmann Marek

workspace: win2k3 | apache2.0.52 | php 5.0.2
Go to the top of the page
+Quote Post
GrayHat
post 22.11.2004, 19:19:23
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??


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
goldmann
post 22.11.2004, 19:23:12
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ąć.


--------------------
Goldmann Marek

workspace: win2k3 | apache2.0.52 | php 5.0.2
Go to the top of the page
+Quote Post
wassago
post 22.11.2004, 19:52:18
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 22.11.2004, 20:19:09
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.


--------------------
Goldmann Marek

workspace: win2k3 | apache2.0.52 | php 5.0.2
Go to the top of the page
+Quote Post
BugTomek
post 23.11.2004, 00:25:32
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
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 23.06.2025 - 11:24