Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Centrowanie elementu w div
david8213
post
Post #1





Grupa: Zarejestrowani
Postów: 308
Pomógł: 0
Dołączył: 9.12.2009

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


Nie mogę wycentrować obrazka

  1. .kontener_blog {
  2. background-color: white;
  3. // min-width: 1000px;
  4. width: 100%;
  5. font-family: Arial;
  6. z-index: 1;
  7. left:0 ;
  8. margin:0 auto;
  9. margin-top: 5em;"
  10. }
  11.  
  12.  
  13. <div class="kontener_blog">
  14.  
  15. <center> <table width=90% bgcolor=green></tr><td>
  16.  
  17.  
  18.  
  19. <table width=60% bgcolor=yellow style="float:left; min-width: 300px;"></tr><td><center>
  20. tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
  21. tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
  22. <br><br>
  23.  
  24. </td></tr><table>
  25.  
  26.  
  27. <div width="40%" style="float:left; background-color: blue; ">
  28.  
  29. <img width="300" src="http://www.tapetynapulpitkomputera.pl/uploads/58c283736b72e_3840x2160.jpg" border="0" style="margin:0 auto; display:block;">
  30.  
  31. </div>
  32.  
  33. <br> </td></tr><table>
  34.  
  35. </div>
  36.  
  37.  
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
david8213
post
Post #2





Grupa: Zarejestrowani
Postów: 308
Pomógł: 0
Dołączył: 9.12.2009

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


Jak podaje szerokość w procentach to nie działa a jak wpisze wartość stała to działa .tyle że ja chcę aby było w procentach
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: 10.10.2025 - 22:34