Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html] wyśrodkowanie tabeli w pionie
nieraczek
post
Post #1





Grupa: Zarejestrowani
Postów: 405
Pomógł: 6
Dołączył: 12.01.2007

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


wysrodkowanie tabeli w poziomie to align="center" - a w pionie (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

TO NIE DZIAŁA:
valign="middle"
vertical-align="middle"
position="absolute"

Ten post edytował nieraczek 18.05.2007, 20:50:13
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 9)
MiFlo
post
Post #2





Grupa: Zarejestrowani
Postów: 92
Pomógł: 4
Dołączył: 12.09.2006
Skąd: 127.0.0.1

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


a nuż się uda i spróbuj style="vertical-align: middle;" lub style="vertical-align: center;"
Go to the top of the page
+Quote Post
sagittariuspl
post
Post #3





Grupa: Zarejestrowani
Postów: 374
Pomógł: 3
Dołączył: 30.12.2006
Skąd: co skąd?

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


najpier zrób tabelę w <div>
Go to the top of the page
+Quote Post
MiFlo
post
Post #4





Grupa: Zarejestrowani
Postów: 92
Pomógł: 4
Dołączył: 12.09.2006
Skąd: 127.0.0.1

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


buhahah właśnie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) bo względem czego masz środkować ? obejmij całą stronę <div></div>
Go to the top of the page
+Quote Post
nieraczek
post
Post #5





Grupa: Zarejestrowani
Postów: 405
Pomógł: 6
Dołączył: 12.01.2007

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


teraz to mi już ani w poziomie, ani w pionie nie środkuje (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

w dokumencie html-cześć body:
  1. <div id="pudlo">
  2. <table border=10 border-style: solid border-color: rgb(255, 0, 0) id="tabela" >
  3. <tr>
  4. <td width="63" height="35" colspan="6">mmmmmmmm</td>
  5. </tr>
  6. </div>
  7. </body>


w dokumencie CSS:
  1. div#pudlo
  2. {
  3. width: 100%;
  4. height: 700px;
  5. }
  6.  
  7. div#tabela
  8. {
  9. vertical-align: middle;
  10. align: center;
  11. }



dlaczego ?
Go to the top of the page
+Quote Post
sagittariuspl
post
Post #6





Grupa: Zarejestrowani
Postów: 374
Pomógł: 3
Dołączył: 30.12.2006
Skąd: co skąd?

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


na css nie znam się znakomicie, ale jedno rzuca się od razu -> nie środkuj tabeli tylko div, w której jest
Go to the top of the page
+Quote Post
nieraczek
post
Post #7





Grupa: Zarejestrowani
Postów: 405
Pomógł: 6
Dołączył: 12.01.2007

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


okej, ale to nie zmienia faktu że dalej nie mogę wyśrodkować tabeli
Go to the top of the page
+Quote Post
sagittariuspl
post
Post #8





Grupa: Zarejestrowani
Postów: 374
Pomógł: 3
Dołączył: 30.12.2006
Skąd: co skąd?

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


o czym ty mówisz? nie środkuj tabeli tylko div'a, a tabela sama się wyśrodkuje - nie jest to logiczne?
Go to the top of the page
+Quote Post
nieraczek
post
Post #9





Grupa: Zarejestrowani
Postów: 405
Pomógł: 6
Dołączył: 12.01.2007

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


robie na rozne sposoby i nic:

dokument css:
  1. div#pudlo
  2. {
  3. width: 100%;
  4. height: 700px;
  5. vertical-align: middle;
  6. align: center;
  7. valign: middle;
  8. }



dokument html:
  1. <div id="pudlo">
  2. <table border=10 border-style: solid border-color: rgb(255, 0, 0)>
  3. <tr>
  4. <td width="63" height="35" colspan="6">mmmmmmmm</td>
  5. </tr>
  6. </div>
  7. </body>



(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ?/
Go to the top of the page
+Quote Post
-Nieznajomek xD-
post
Post #10





Goście







Robisz cos takiego jak klase tabeli (IMG:style_emoticons/default/haha.gif) , a tam robisz cos takiego jak ustawianie marginów, że tak napisze (IMG:style_emoticons/default/haha.gif) .:
W css:

  1. table.klasa1{
  2. margin-left: auto;
  3. margin-right: auto;
  4. }


i wysrodkowane

a w html:

  1. ...
  2. <table class="klasa1">
  3. ..tresc..
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 - 19:19