This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Radio Buttons Text alignment 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 "Radio Buttons Text alignment" Watch "Radio Buttons Text alignment" New topic
Author

Radio Buttons Text alignment

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

Have a look at the screenshot below. How do I make the text little bit aligned away from the radio button?



[Thumbnail for Screen Shot 2012-08-10 at 8.03.33 PM.png]


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

CSS, just like any other styling issue.

Depending upon how the markup is coded, I'd suggest using a left margin. But hard to say without the markup.

If you decide to post the markup, be sure that it does not include server-side code, that you UseCodeTags, and that is it is properly formatted.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

Here is the rendered HTML:



I use the Struts s:radio tag and I had cssClass in that but there seems to be no styling at all in the rendered HTML.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

Threw away the struts cssClass and used my own. Looks fine now.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

One thing... I'd avoid using <br> for vertical stacking. I'd use <div> elements -- gives you a lot more control.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Radio Buttons Text alignment
 
It's not a secret anymore!