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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dropdown box height is always too small can I specify them in Style sheet?

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Is there a way to have a global style sheet so everytime I add a drop down list it makes it 22px high?
Whenever I add one it seems its 18px and the descending letters such as g p y are cut off on the bottom when is shows. so I have to the edit the height eveytime.


DougP
 

Add a Control Skin file to the solution and set the format of the dropdown list as you would in your aspx markup.

Code:
<asp:DropDownList runat="server" Height ="22px" />

Then on each page, set then Theme attribute of @Page directive:

Code:
EnableTheming="true" Theme="<yourSkinNameHere>"

Each Dropdown list will have the same format properties as defined in your skin file.




Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top