Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNick Hennen
7,812 PointsHow to format <html:cancel/> button with css.
The type attribute maybe submit. I have already formatted the submit attribute type with the color green. I want this button to be red with other custom styling.
Nick Hennen
7,812 Points<html:submit/>
<html:cancel/>
I think they are Struts tags.
I am modifying the buttons right now in css with code like this below. The problem is that the css apply to both buttons. There may not be a cancel attribute type in standard html so I could just replace submit with cancel.
input[type="submit"] {
........
}
1 Answer
myackley35
34,574 PointsNick,
You can try putting a styleName, styleId, or styleClass attribute in the tag as a hook for your CSS. I think you might be better off with styleClass if you're going to be using submit buttons with the same styling.
myackley35
34,574 Pointsmyackley35
34,574 PointsHi Nick!
Can you post the HTML and CSS that you are using for your button?
Thanks!