|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css in select field
hi,
how can i set css for select specially size <select size="1"> or <select> <option>asd</option> </select> is it possible to make the look of this combo and the size of fonto similar no matter u change the resolution of ur system. as i have seen the diff. initially i had resolution of 1152*864 pixel this combo look change when i made my system resolution to 1280*1024 pixel.color as true color(24bit)then i made script size as big letter,then i have noticed asd value becomes bold is it possible that if i write something in css for combo it looks similar no matter i change the resolution, is it also possible to reduce width of combo and the font size should also be small similar like this link http://www.jobboerse.de/cgi-bin/jobs/classifieds.cgi?website=&language=&session_key=&place_front_page=on hope its clear exactly i just want the combo size and font size in above link thanks |
|
#2
|
|||
|
|||
|
RE: css in select field
try:
<select style="{width:200;font-family : Verdana,Arial;font-size:12;}"> |
|
#3
|
|||
|
|||
|
RE: css in select field
thanks alot
|
|
#4
|
|||
|
|||
|
RE: css in select field
Try this modified code:
Code:
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1 >
<tr bgcolor="#cccccc">
<th nowrap>Von</th>
<th nowrap>City</th>
</tr>
<tr>
<td align=center valign=center nowrap>
<select name="von" style="{width:100;font-family:Arial,Verdana;font-size:80%;}">
<option>sdsa</option>
</select><BR>
</td>
<td nowrap>
<select name="city">
<option>usa</option>
</select>
<input type="button" class="button" name="now" size="1" value=">" style="{font-face:verdana;font-size:70%;height:20;width:20;}">
</td>
</tr>
</table>
To reduce the size of the button, you can change the height: and/or width: elements in it's style, but remember it CAN be smaller than the text (value) so adjust the font size too. The best way to achieve consistent alignment is (in my opinion) to put every object in separate table cells. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > css in select field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|