Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wyśrodkowane 2 divy koło siebie
creative123
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 20.01.2010

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


Mam 2 divy:

  1. <div>
  2. <div class="button"><a href="coś">Napis</a></div>
  3. <div class="button"><a href="coś2">Napis2</a></div>
  4. </div>


Jak umieścić je koło siebie, aby jednocześnie były wyśrodkowane?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
plsd
post
Post #2





Grupa: Zarejestrowani
Postów: 25
Pomógł: 1
Dołączył: 10.09.2009

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


Kod
<div style="margin:0 auto;width:700px;background:yellow;">
<div class="button" style="float:left;background-color:red;height:100px;"><a href="coś">Napis2</a></div>
<div class="button" style="background-color:green;height:100px;"><a href="coś2">Napis</a></div>
</div>

icetique po co dajesz dwa elementy pływające przeciez ten kod nie ma sensu

Ten post edytował plsd 31.01.2010, 22:41:19
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.06.2026 - 16:41