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

Radio button loosing it�s CSS

 
Rafael Andrade
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I�m using a CSS style (line1) in a radio button, to add borders to the line. But when I click on it, it looses it�s CSS, and becomes a normal radio button, without any CSS, centered left, and without center align. Anybody had this problem? The code of the JSP is as follows:

<td class="line1">
<html:radio property="idCity" value="${item.id}"/>
</td>

here is the CSS:
td.line1{
text-align: center;
border-top: 1px solid;
border-right: 1px solid;
border-color: #B0B0B0;
}

thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The source code of the JSP, especially with un-rendered Struts tags, is not particularly interesting.

Do a View Source in the browser to show us the HTML that really being sent to the client.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. It's also a good idea to use UBB code tags when posting code fragments in order to preserve any formatting.
 
Subhadip Chatterjee
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rafael,
what i can suggest is, if you are using that style-sheet only for that radio button, then instead of applying it on TD you can pass it onto RADIO like this: <html:radio styleClass="the_style_class">. I hope you know this. If this doesn't work, then you might be changing the style class somehow, on click of radio button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic