aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 9616
    
    2

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: 61756
    
  67

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: 9616
    
    2

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: 9616
    
    2

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

Joined: Jan 10, 2002
Posts: 61756
    
  67

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

One thing... I'd avoid using <br> for vertical stacking. I'd use <div> elements -- gives you a lot more control.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Radio Buttons Text alignment