wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes aesthetics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "aesthetics" Watch "aesthetics" New topic
Author

aesthetics

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
I am nicely producing buttons with struts tags in jstl tags in a table. However they look ugly both in font and default. They are submit buttons. How can I substitute my own buttons with a different font and/or graphic? tia
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

You might want to check out the <button> tag (be sure to give it type="submit" if you want it to act like a submit button) and some CSS to style it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Originally posted by Bear Bibeault:
You might want to check out the <button> tag (be sure to give it type="submit" if you want it to act like a submit button) and some CSS to style it.


Hi Bear
Thanks, however can I use a button tag within the struts
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
add css to the button as mentioned.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

I am not a fan of Struts so I don't know if it has tags that let you create button tags or not. If Struts doesn't let you create button tags, do it yourself.

Or, you could do a View Source on the HTMl code that the Struts tags generate and try to retro-fit your CSS to its output.
 
jQuery in Action, 2nd edition
 
subject: aesthetics