aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes centering buttons in Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "centering buttons in Firefox" Watch "centering buttons in Firefox" New topic
Author

centering buttons in Firefox

Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Hi,

I have two buttons that display correctly in the center of the row in IE but not in firefox. Here is the code.

<table align="center" cellpadding="2" cellspacing="2">
<tr>
<td><input type="SUBMIT" value="Next"></td>
<td><input type="RESET" value="Clear Form"></td>
</tr>
</table>

What do I need to do to have firefox do the same?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

Have you tried putting the align attribute on the table cells rather than the table? Or use CSS instead of markup?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Yes, I tried putting the align on the individual cell and that did not work. How do I do that in css?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: centering buttons in Firefox