Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML]dwa div koło siebie - jak?
kidler
post
Post #1





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 9.09.2006

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


Witam. Ma taki kodzik:
  1. <div style="background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>
  2. <div style="background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>

Jak zrobić żeby te dwa divy wyświetlały się koło siebie?
Go to the top of the page
+Quote Post
nevt
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


  1. <div style="float: left; background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>
  2. <div style="background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
bemol
post
Post #3





Grupa: Zarejestrowani
Postów: 286
Pomógł: 29
Dołączył: 5.04.2007
Skąd: Rymanów Zdrój/Rzeszów

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


a czy nie brakuje:
display:inline; ?


--------------------
Tym ludziom zaufałem i dobrze na tym wyszedłem:
kresh
Darti
piotrekkr
Bez nich wiele bym nie zrobił. Dzięki im za to!
Go to the top of the page
+Quote Post
nevt
post
Post #4





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


nie.


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
wookieb
post
Post #5





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Cytat(nevt @ 8.09.2008, 19:41:18 ) *
  1. <div style="float: left; background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>
  2. <div style="background-image: url('tabelka-statystyki_02.gif'); width: 300px; border: 0px solid black; padding: 25px; background-repeat: no-repeat;"></div>

Lepiej już nic nie pisz...
Kod
<div style="float: left; background: url('tabelka-statystyki_02.gif') no-repeat; border: 0px; width: 300px; padding: 25px; height: 20px;"></div>
<div style="float: left; background: url('tabelka-statystyki_02.gif') no-repeat; border: 0px;width: 300px; padding: 25px; height: 20px;"></div>


A bardziej elegancko
Kod
<style type="text/css">
.kolumna
{
float: left;
background: url('tabelka-statystyki_02.gif') no-repeat;
border: 0px;
width: 300px;
padding: 25px;
height: 20px;
}
</style>

<div class="kolumna"></div>
<div class="kolumna"></div>


Ten post edytował wookieb 8.09.2008, 19:40:52


--------------------
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 Aktualny czas: 20.08.2025 - 07:12