Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]Sztywny rozmiar dla pola select
BIG_MICHU
post
Post #1





Grupa: Zarejestrowani
Postów: 49
Pomógł: 0
Dołączył: 27.08.2006

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


Czy można dla pola select ustawić sztywno jakiś rozmiar? Chodzi o to że mam dwa pola typu select i chcę, aby były one jednej szerokości. Jak w select wpiszę size to mi się robi okno na długość, a jak wpiuję size w td... to pole ani drgnie.

Ten post edytował BIG_MICHU 12.11.2006, 17:32:33
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
rrawicz
post
Post #2





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 28.12.2016

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


a u mnie nie dziala:

mam takie cos i pole select rozciaga sie az poza ekran
  1. echo '<td><select name="template_problem" onChange="change_template_problem(template_problem.selectedIndex)" list="item_template_problem" style="background-color: #F3F3F3; border-style: ridge; border-color: #F3F3F3; border-width: 1px"; widht: 20px;/>';


zrobilem to inaczej, otoczylem <select> div'ami i to dziala:

  1. echo '<div class="col-xs-7">';
  2. echo '<select class="form-control input-sm" name="template_problem" onChange="change_template_problem(template_problem.selectedIndex)" list="item_template_problem" style="background-color: #F3F3F3; border-style: ridge; border-color: #F3F3F3; border-width: 1px"/>';
  3. echo '</div>';


no i konieczne jest dodanie do <select> tego:

  1. class="form-control input-sm"
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: 11.10.2025 - 04:41