jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes text and img inside button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "text and img inside button" Watch "text and img inside button" New topic
Author

text and img inside button

Hengki Widjaja
Ranch Hand

Joined: Oct 31, 2011
Posts: 44
I have the following code:


1. How can I make the save.gif auto-size based on button's size ?
2. How to make the img vertically center?
3. how to make the "Save" caption vertically center? text-align, line-height, vertical-align didn't work

thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: text and img inside button
 
Similar Threads
Problem with alignment of outputLabel
Fusion Charts: How to put data into xml file ?
setting the selected option in a select element
resultset is not working properly
Aligning text vertically within a JButton