Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html]Szerokość SPAN
Kethrax
post
Post #1





Grupa: Zarejestrowani
Postów: 80
Pomógł: 3
Dołączył: 9.12.2006
Skąd: Kraków

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


Czy jest możliwość ustawienia szerokości SPAN'a (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
np.

  1. <span style="width: 300px;">ble ble ble </span>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




width mozna nadawac dla elementow blokowych, a span jest elementem liniowym. Moze dac dla span style="display: block;", ale wowczas span juz nie bedzie spanem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
PawelW
post
Post #3





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

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


Może trochę na około ale jeżeli ma to wyglądać tak
--------------- aaaaa --------------
gdzie ----- to odstęp jaki chcesz uzyskać to spróbuj ustawić margin-left margin-right.
Go to the top of the page
+Quote Post
Kethrax
post
Post #4





Grupa: Zarejestrowani
Postów: 80
Pomógł: 3
Dołączył: 9.12.2006
Skąd: Kraków

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


próbowałem z padding-left i padding-right,

  1. <span style="padding-left: 50px; padding-right: 50px;">Login:</span>
  2. <span style="padding-left: 50px; padding-right: 50px;"><input type="text" name="login"></span><br>
  3.  
  4. <span style="padding-left: 50px; padding-right: 50px;">Hasło:</span>
  5. <span style="padding-left: 50px; padding-right: 50px;"><input type="password" name="passw"></span><br>
  6.  
  7. <span style="padding-left: 50px; padding-right: 50px;">Potwierdź:</span>
  8. <span style="padding-left: 50px; padding-right: 50px;"><input type="password" name="passw2"></span><br>


kolumny i tak nie są wyświetlane równo ...

Poddaje sie...

Ten post edytował Kethrax 5.06.2007, 15:18:44
Go to the top of the page
+Quote Post
revyag
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

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


Kombinujesz niepoprawnie. Inputów się w spany nie wsadza, bo po co ?
Tekst przy elemencie formularz definiujesz używając label.

  1. <label for="login">login:</label><input type="text" name="login" id="login" />

Jeśli chcesz ładnie formularz wyświetlić to dla label daj display:block;float:left i ustaw mu stałą szerokość dla każdej etykiety opisującej dany element formularza.
Go to the top of the page
+Quote Post
Kethrax
post
Post #6





Grupa: Zarejestrowani
Postów: 80
Pomógł: 3
Dołączył: 9.12.2006
Skąd: Kraków

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


ok, it works

  1. <label for="login" style=" width: 100px;display: block; float: left;">Login:</label><input type="text" name="login" id="login" /><br>


dzięki
Go to the top of the page
+Quote Post

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: 24.08.2025 - 02:25