Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop down height
Message
De
04/07/2014 22:40:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
CSS
Catégorie:
Style
Divers
Thread ID:
01603193
Message ID:
01603250
Vues:
50
>>>Hi everybody,
>>>
>>>I am not sure why any changes I made in the height seem to be ignored. Is it because the drop down is in the table?
>>>
>>>
>>><TABLE ALIGN="center" BORDER=0 CELLSPACING=0 CELLPADDING=0 CLASS='tabletext' WIDTH=550>
>>><TR><TD ALIGN=center>
>>>    <INPUT TYPE="button" CLASS='button' 
>>>     ONCLICK="NavigateLastNForms()"
>>>     VALUE="Show last <<INT(This.nLastNForms)>> Forms" ID="F9-001">
>>>    </TD>
>>>	
>>>	<TD ALIGN=center><SELECT NAME="cboShop" style='height:50px;' ID="cboShop">
>>>                <LOOP Table=csrO_RentalShops><OPTION <<IIF(lnHomeRentalShop = csrO_RentalShops.shop_no, [SELECTED], [])>> VALUE="<<csrO_RentalShops.shop_no>>"><<alltrim(csrO_RentalShops.descrip)>></Option></LOOP>
>>>				<OPTION VALUE="0">All Shops</OPTION>
>>>                </SELECT></TD>
>>>
>>>I want the drop down to be the same height as button. I tried making changes in the height, but the drop down seems to remain the same and that style is ignored.
>>>
>>>Do you know how to scale it correctly?
>>>
>>>In my stand-alone test on ww3schools website the style works just fine. May be the reason is the tabletext class?
>>>
>>>Thanks in advance.
>>
>>Can you post your entire sample is http://jsfiddle.net/ and post the link? That will make it easier to mess around with.
>
>This is the link
>http://jsfiddle.net/Z6PMs/
>
>however, we're running this from C++ application in some sort of Web Browser and I see buttons bigger and the drop down narrower than there.

It's probably a different type of web browser than what you regularly use, so it will render different. I am embedding a Gecko web browser in a legacy desktop application so it renders the same as FireFox.

As you can see in my update: http://jsfiddle.net/Z6PMs/1/, normal web browsers recognize styling the height of a dropdown. I would guess your problem lies with the web browser component being flaky.
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform