Button Height is not increasing using CSS

Hi,

There’s no change in the Button height after specifying the height in the css file.
I am using “.button” of skin_styles.css & related classes for the same.
It works fine when i use the Height property while creating the button.

Thanks

That’s by design - see this discussion of the properties you are expected to set in CSS vs via SmartClient properties. Most properties related to positioning, sizing, clipping and visibility are set via SmartClient properties in JavaScript, in order to make it possible to shield developers from browser inconsistencies.

Text Clipped at the bottom when button height controlled through CSS

Hi Isomorphic,

When we tried to increase height of button through CSS Text got Clipped at the bottom or Bottom aligned.

Can you please suugest the best way of acheiving this, with text as center aligned.

Hello Deepak,

As previously discussed, you set the height of buttons via button.height, not CSS.

If you want a Button to auto-fit to the text it contains, set button.autoFit:true.

Note that if you have an image-based button (StretchImgButton), vertically autofitting to fit very tall text will distort the images. Horizontally stretching to fit a long button title is fine.