I am doing a base method to create a button CreateButtonBase(BtnOptions); on C#.
Here is the structure of a button:
<div onClick="someOnclickFunc">
<image src="/someimage.png" height="someHeight">
<span>SomeText</span>
</div>
BtnOptions include height that needs to be set for the button. And I have some problems there.
I can set attribute height for an , but it will not have any effect on the height of whole . The height of a div depends on the font-size. If i just change height using a css height with inline-style (which is incorrect) the button will be cut and not shown properly.
Has anyone encountered such a problem?