Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]Wycentrowanie div'ów w poziomie
andrzej7322
post
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 1
Dołączył: 8.05.2010

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


Wiatm, mam problem chcę wycentrować trzy divy w poziomie żeby byly obok siebie gdy użyje funkcji center i nie mam w css ustawione float :left to divy centruja sie tylko ze ukladaja sie w pionie wszystkie jeden pod drugim a ja potrzebuje wycentrowac w ten sposob aby byly obok siebie na srodku strony.

Z góry dziękuję za pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
andrzej7322
post
Post #2





Grupa: Zarejestrowani
Postów: 71
Pomógł: 1
Dołączył: 8.05.2010

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


Już tak robiłem ale nie działa to wygląda tak
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <link rel="stylesheet" type="text/css" href="css/style.css" />
  4. <div class="product"></div>
  5. <div class="product"></div>
  6. <div class="product"></div>
  7. <div class="product"></div>
  8. <div class="product"></div>
  9. <div class="product"></div>
  10. <div class="product"></div>
  11. </center>

  1. .product{
  2. width:100px;
  3. height:100px;
  4. background:red;
  5. margin:5px;
  6. }
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: 4.10.2025 - 09:02