/    Sign up×
Community /Pin to ProfileBookmark

CSS for 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
[url]http://www.jobboerse.de/cgi-bin/jobs/classifieds.cgi?website=&language=&session_key=&place_front_page=on[/url]

hope its clear exactly i just want the combo size and font size in above link

thanks

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWJul 09.2003 — If you want exactly what they have here it is:

SELECT{

BACKGROUND-COLOR : #eeeeee;

BORDER-BOTTOM-COLOR : #3c3c3c;

BORDER-BOTTOM-WIDTH : 1px;

BORDER-LEFT-COLOR : #3c3c3c;

BORDER-LEFT-WIDTH : 1px;

BORDER-RIGHT-COLOR : #3c3c3c;

BORDER-RIGHT-WIDTH : 1px;

BORDER-TOP-COLOR : #3c3c3c;

BORDER-TOP-WIDTH : 1px;

COLOR : #3c3c3c;

FONT-FAMILY : Arial, Helvetica, sans-serif;

FONT-SIZE : 11px;

}
Copy linkTweet thisAlerts:
@zuzupusauthorJul 10.2003 — Thanks alot its incredibly awesome do you have any css forarding button as now ,in my form button looks different with combo in same table,it looks awkward imean to say the alignment is not proper when compared von combo with city combo,the look for von is ok but the city is sligtly down when comes to alignment.also how i can reduce size of button

please copy the below code then u can see the difference

<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1 >

<tr bgcolor="#cccccc">

<th nowrap>Von</th>

<th nowrap>City</th>

</tr>

<tr>

<td nowrap>

<select name="von">

<option>sdsa</option>

</select>

</td>

<td nowrap>

<select name="city">

<option>usa</option>

</select>

<input type="button" class="button" name="now" size="1" value=">" >

</td>

</tr>

</table>

i used css for button

input.button{

font-family: Arial, Helvetica, Sans-Serif;

font-size: 10pt;

font-style: normal;

font-weight: 400;

background-color: #CC6600;

color: rgb(0, 0, 0);

}


thanks in advance

Copy linkTweet thisAlerts:
@DaveSWJul 10.2003 — I think you can specify a width in the select tag

<select style="width:100px;"...>

But i'm not sure. There's a thread somewhere discussing it.
Copy linkTweet thisAlerts:
@zuzupusauthorJul 10.2003 — yaa ur right still its not working and i checked the thread but unfortunatley i couldnt seen if i use style="width:100px;" then width of combo increases that i dotn want,only alignment problem in table may be u wont see clearly in two fields but if u take more than 10 cols.then u will see the alignment is nt proper

thanks
×

Success!

Help @zuzupus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...