Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i control height of a dropdown menu?

Status
Not open for further replies.

feshangi

MIS
Nov 24, 2004
265
US
is this possible? i am controling the width with css but don't know how to control the height!

please advice.

thanks,

mike
 
since "Dropdown" Menus are subjective to the indivisual javascript/css code, we'd need to see the sniplet of the code creating the dropdown, in order to determine if it's possible with the specific code being used.

Karl Blessing
PHP/MySQL Developer
 
here is exactly what i have:

Code:
<SELECT 	name="Country"
										id="Country" style="width:248px;">
                                        <OPTION value="All" <cfif (IsDefined("SESSION.Search.Country") AND "All" EQ SESSION.Search.Country)>selected</cfif>>The World</OPTION>
                                        <CFOUTPUT query="GetCountry">
                                          <OPTION value="#GetCountry.Country_str_code#"<cfif (IsDefined("SESSION.Search.Country") AND GetCountry.Country_str_code EQ SESSION.Search.Country)>selected</cfif>>#GetCountry.Country_str_name#</OPTION>
                                        </CFOUTPUT>
                                    </SELECT>
 
Hi feshangi,

I've done that by controlling the height of the font inside the option Tag. You will need to use Cascading Style Sheets with that.

OPTION { font-height : 10px }

Eva
 
what's wrong with:
Code:
<select name="Country" id="Country" style="width:248px; height: 30px;">

*cLFlaVA
----------------------------
[tt]Sigs cause cancer.[/tt]
 
Code:
style="width:248px; height: 30px;">

Look at cLFlaVA's post again - you have a typo

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top