Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Dynamic Button Size

Recommended Posts

In my application I have a custom tag that generates all the action buttons that the page needs.

My problem is that in IE the space between the left side of the button and the image inside the button are not consistant. Some buttons have 3 or 4 more pixels of padding on the left side then others.

This causes my buttons to be too large and hence the area the buttons are generated in stretches too far. I could wrap the buttons around to another line or add scroll bars.. but if it will fit in FF I think it should fit in IE as well.

So my question is can I set the padding between the left side of the button and the image of the button?


Code:

<button title='Clear' onMouseOver="Clear_img.src='/images/actions/shadow/action_clear.png' onMouseOut="Clear_img.src='/images/actions/plain/action_clear.png' onClick='buttonClick(this)' id='button_Clear' name='Clear'value='Clear' type='submit'><img vspace='0' width='16' height='16' name='Clear_img'src='/images/actions/plain/action_clear.png'> Clear</button>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.