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 6554677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:43:42+00:00 2026-05-25T12:43:42+00:00

my current markup is as follows: <li class=multi_answer> <label for=checkbox2> <div class=multi_answer_box> <input type=checkbox

  • 0

my current markup is as follows:

<li class="multi_answer"> 
    <label for="checkbox2">
        <div class="multi_answer_box">
            <input type="checkbox" id="checkbox2" name="checkbox2" class="multi_box" />
        </div>
        <div class="multi_answer_text">Checkbox Label</div>
    </label>
</li>

works great in everything BUT firefox.

after inspecting the markup, it’s reading it as…

<li class="multi_answer">
    <label for="checkbox1"> </label>
    <div class="multi_answer_box">
        <input id="checkbox1" class="multi_box" type="checkbox" name="checkbox1">
    </div>
    <div class="multi_answer_text"> Increased counseling staff </div>
</li>

ideas why FF would be interpreting it this way?

I also am using this css

.multi_answer label:hover {
    background:#DDD;
}

.multi_answer_box input {
    padding-left:5px;
    padding-right:5px;
    float:left;
    height:48px;
    width:48px;
}

.multi_answer label {
    overflow: auto;
    cursor:pointer;
    width:auto;
    margin:10px;
    padding: 10px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    background:#CCC;
    display:block;
}

http://jsfiddle.net/NhD3r/1/ <—- working example

  • 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-25T12:43:43+00:00Added an answer on May 25, 2026 at 12:43 pm

    Probably because label must contain inline elements only, and not block elements like div.

    SOLUTION

    replacing all div‘s with span‘s retained intended styling and function while complying with above stated rule.

    <li class="multi_answer"> 
        <label for="checkbox2">
            <span class="multi_answer_box">
                <input type="checkbox" id="checkbox2" name="checkbox2" class="multi_box" />
            </span>
            <span class="multi_answer_text">Checkbox Label</span>
        </label>
    </li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say i have this markup: <div class='current'> </div> <div class='current'> </div> <div class='current'> </div>
I have an input element in HTML markup as below: <input type=text name=s id=s
I've got the following markup: <div id=accordion class=leftaligned> <div> <h3><a href=#>Stakeholder</a></h3> <div>Content</div> </div> <div>
here's my markup: <div class=container> <ul> <li class=record> <div class=item></div> <---- I am here
I have the markup like that: <div class=outer> <a class=btn> <img src=btnImg.jpg /> </a>
My html markup is as below: <ul class=top-nav> <li id=page-1><a href=/>HOME</a> <ul class=page-1 current>
I have this markup: <span id=tabPhp class=infoData>PHP</span> <span id=tabJquery class=infoData>jQuery</span> <span id=tabWordpress class=infoData>WordPress</span> <span
I have, for example, markup like this <div id=content> <p>Here is some wonderful text,
To have less redundant XAML markup i try to get a radiobutton-type selection control
I have some markup that looks like this: <a href=# class=someButton> <span class=play>play</span> </a>

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.