Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Szerokość div'a
son
post 7.03.2005, 18:29:56
Post #1





Grupa: Zarejestrowani
Postów: 210
Pomógł: 0
Dołączył: 31.01.2004
Skąd: Kraków

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


Witam
Mam div'a i jeżeli nie zdefiniuje szerokości przyjmuje on wartość 100% Kiedy dam jakąś konkretną wartość to niektóre przegladarki źle to interpretują (tzn. za wcześnie się łamią). Co zrobić żeby przeglądarka zawsze przyjmowała najmniejszą potrzebną szerokość, a zarazem wszystko w sobie mieściła?

Pozdrawiam


--------------------
Warsztat: Apache 1.3.36 | MySQL 4.1.19 | php 5.1.4 | OS Linux SUSE 10.3 x86_64 | Kernel 2.6.22.12-0.1 | Opera 9.5 | Kate
Na warsztacie: Ekartki
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Strus
post 7.03.2005, 20:10:27
Post #2





Grupa: Zarejestrowani
Postów: 184
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Bochnia

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


Wklej kod, bo nie dokońca rozumiem o co Ci chodzi, ale może pomoże coś w stylu min-width, max-width i analogicznie height ?


--------------------
Go to the top of the page
+Quote Post
son
post 7.03.2005, 20:55:50
Post #3





Grupa: Zarejestrowani
Postów: 210
Pomógł: 0
Dołączył: 31.01.2004
Skąd: Kraków

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


Cytat(Strus @ 2005-03-07 20:10:27)
Wklej kod, bo nie dokońca rozumiem o co Ci chodzi, ale może pomoże coś w stylu min-width, max-width i analogicznie height ?

Tak cos w tym stylu, tyle że IE tego nie interpretuje dry.gif

Mój kod wyglada mniej więcej tak:
Kod
<div class="thumb_row" style="margin-left: auto; margin-right: auto; width?: questionmark.gif?" >
<div class=\"thumb\" style=\"width: 185px\">
</div>
<div class=\"thumb\" style=\"width: 185px\">
</div>
<div class=\"thumb\" style=\"width: 185px\">
</div>
</div>


--------------------
Warsztat: Apache 1.3.36 | MySQL 4.1.19 | php 5.1.4 | OS Linux SUSE 10.3 x86_64 | Kernel 2.6.22.12-0.1 | Opera 9.5 | Kate
Na warsztacie: Ekartki
Go to the top of the page
+Quote Post
Strus
post 7.03.2005, 21:50:59
Post #4





Grupa: Zarejestrowani
Postów: 184
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Bochnia

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


A po co Ci te slashe w <div class=\"thumb\" style=\"width: 185px\"> ?

Jeśli chodzi o min, max to innej możliwości nie znam.


--------------------
Go to the top of the page
+Quote Post
Cysiaczek
post 7.03.2005, 22:32:31
Post #5





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Te slashe to pewnie pozostałość po funkcji print "ble ble ble"


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
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 Wersja Lo-Fi Aktualny czas: 24.07.2025 - 20:40