Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Dynamic Button Size
kvarnerexpress
post Feb 10 2006, 09:57 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



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:
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>
Go to the top of the page
 
+Quote Post
Tyssen
post Feb 11 2006, 01:50 AM
Post #2



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



Have you tried setting the properties of your buttons with CSS and including the image as a background image rather than in the HTML?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Delphi Tutorial - Change Your Start Button Caption(4)
  2. Psp Square Button Problem(12)
  3. Java Script Drop Down Menu With Css(2)
  4. Linking A Url To A Button(3)
  5. Change Font Size On Taskbar Buttons(4)
  6. Radio Button(4)
  7. How To Create Java Button Or Frame(14)
  8. Css And Javascript Combined For Dynamic Layout(9)
  9. Mysql Database Size(6)
  10. Transfer File Of Any Size Using Winsock Control(5)
  11. Refresh Page After Back Button Hit(11)
  12. Layout Size(10)
  13. Need To Shrink The File Size Of Web Image? - Photoshop Tricks(3)
  14. Can I Make Dynamic Menu In Php(7)
  15. Image Not Taking The Right Size In Web Page(1)
  1. Ratchet And Clank Future(1)
  2. How To Convert Static Ip To Dynamic Ip`?(9)
  3. How Do I Change The Default Windows Font Size?(3)
  4. Size Of Graphic Cards?(5)
  5. Trap17 Dynamic Recent Post/topic Image(17)
  6. Allowed Memory Size Exhausted(1)
  7. Text Size Problem(6)
  8. Cd Drive Eject Button Problem(3)
  9. Allowed Memory Size Exhausted(4)
  10. How To Make Image Buttons Act As Submit Button(8)
  11. Create Dynamic Html/php Pages Using Simple Vb.net Code(1)
  12. Destination Address For "submit" Button(5)
  13. Text Size In "fill-in" Form Blanks(2)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:15 PM