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

  • SEARCH
  • Home
  • 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 6219905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:51:56+00:00 2026-05-24T07:51:56+00:00

I have this code : <div class=richiedi_info_item> <label>Message</label> <span style=color:Red;>&nbsp;*</span> <div class=richiedi_info_item_nota> <a id=notaInfo

  • 0

I have this code :

<div class="richiedi_info_item">
    <label>Message</label>
    <span style="color:Red;">&nbsp;*</span>                                                                
    <div class="richiedi_info_item_nota">     
        <a id="notaInfo" href="javascript:void(0);">Click</a>            
    </div>
</div>

.richiedi_info_item_nota
{
    float:right;
    width:252px;    
}

.richiedi_info_item
{
    margin-top:15px;   
    width:400px; 
}

.richiedi_info_item label
{
    float:left;
    height:16px;
    line-height:20px;
}

and (on every browser expect IE7) the text Message and the link Click is aligned on the same line. Seems that span (with the red *) create a new line.

Why? And how can I fix this problem?

  • 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-24T07:51:57+00:00Added an answer on May 24, 2026 at 7:51 am

    You can remove the floats (left and right) and set the div to display:inline, like this:

    .richiedi_info_item_nota
    {
        display:inline;
        width:252px;    
    }
    
    .richiedi_info_item label
    {
        height:16px;
        line-height:20px;
    }
    

    EDIT:


    IE7 Does not handle floats very well, especially with inline elements (span and label) so I added another div around both of the items and floated it.

    HTML

    <div class="richiedi_info_item">
        <div id="floating">
            <label>Message</label>
            <span style="color:Red;">&nbsp;*</span> 
        </div>
    
       <div class="richiedi_info_item_nota">     
           <a id="notaInfo" href="javascript:void(0);">Click</a>            
       </div>
    </div>
    

    CSS

    .richiedi_info_item_nota
    {
        width:21px;
        clear:both;
        float:right;
    }
    
    .richiedi_info_item
    {
        margin-top:15px;   
        width:400px; 
    }
    
    .richiedi_info_item label
    {
       height:16px;
        line-height:20px;
    }
    
    #floating {
        float:left;
    }
    

    WORKING EXAMPLE

    JsFiddle Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have this HTML code <th scope=col class= style=width: 13px;> <div class=some-handle></div> <a
I have this html code: <body> <div class=CodeRay> <div class=code><pre><span class=no> 1</span> require <span
I have this html-code: <div class=im> <div style=height:220px>HELLO WORLD! <a class=close>X</a> <a class=open style=display:none;>V</a>
i have this code <div id=aggregate style=display:inline> <%=Html.RadioButton(a, 1, true, new {id = meRadio})%><label>Me</label>
I have this HTML code: <div class='com_box'> <div class='com_box_c'> <div class='com_box_info'> <a id='quote'>quote</a> </div>
Suppose I have the following html: This a test of <code>some code</code>. <div class='highlight'>
I have this code <div id=main style=background:#aaaaaa;float:left;height:160px;margin:5px;position:relative;display:block;width:630px;> <div id=1 class=item style=background:#ffaacc;float:left;width:200px;height:150px;margin:5px;position:absolute;left:0px;top:0px;> </div> <div id=2
I have this code: <div classclassNameFather> <div class=className> <div class=className> <div.... (unlimited elements) </div>
Lets say we have this code: <div id='m1'> <div class=c></div> <div class=c></div> <div class=c></div>
I have this code: <div class = content-dir-item> <p>Text input</p> <img src=./images/email.png class =

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.