Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

centering buttons in Firefox

 
Manon Baratt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried putting the align attribute on the table cells rather than the table? Or use CSS instead of markup?
 
Manon Baratt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I tried putting the align on the individual cell and that did not work. How do I do that in css?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic