Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6667601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:57:03+00:00 2026-05-26T02:57:03+00:00

I have 2 html radio buttons (separated by <br /> tags) where the text

  • 0

I have 2 html radio buttons (separated by <br /> tags) where the text is wrapping under the radio button instead of aligning with the left indent (due to the size it’s containing div). The text wrapping is not the problem, the problem is that it is wrapping incorrectly under the radio button itself, instead of aligning with text in the line above it. I’m supposing someone styled the input tag somewhere in the cascade. I haven’t done an exhaustive search of all the styles attached to this page, but shouldnt the text just automatically wrap correctly, like a bullet list?
enter image description here

And if not, how would i go about fixing this? Do i need to insert a <br /> tag where I want the lines to break so they will be properly aligned?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:57:03+00:00Added an answer on May 26, 2026 at 2:57 am

    First of all, the use of a <br /> is generally not recommended, it’s a lot better to try and use the margin CSS property to create space between elements.

    It’s also best in this situation to use CSS to do what you want to do. This is because by default those elements won’t have this kind of behaviour.

    In this case you would want something that looks like this:

    <div style="width:300px">
        <input type="radio" class="radioLeft" />
        <div class="textBlock">
            Some text that is too long to fit inline and must be broken 
            up over multiple   lines.Some text that is too long to fit inline 
            and must be broken up over multiple lines.Some text that is too 
            long to fit inline and must be broken up over multiple lines.
        </div>
        <div style="clear:both;"></div> //this is important for repeated inputs
    </div>
    

    And then your CSS would look like this:

    .radioLeft
    {
       float: left;
    }
    
    .textBlock
    {
        float: left;
        width: 80%; //Adjust this value to fit
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML form with radio buttons, check boxes, text fields and drop
I have a JSP/HTML form with text box and radio buttons. I am saving
Does anyone have a no JavaScript way to make HTML radio buttons belonging to
I have a simple HTML form which consists of radio buttons where user has
I have an HTML form with some radio buttons like these: <form action =
I have 2 radio buttons in my mvc webpage. <% using (Html.BeginForm(Search, Search)) {
I have a html form which contains group of radio buttons. When one of
I am new to html and css. I have 3 sets of radio buttons.
I have an html form consisting of just radio buttons. The 2nd line of
Using Javascript and html: I have a list containing radio buttons that is dynamically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.