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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:47:14+00:00 2026-06-10T15:47:14+00:00

I am having an issue where I cannot get the same bit of CSS

  • 0

I am having an issue where I cannot get the same bit of CSS to render the same across Firefox and Chrome. Instead of a vertical select box of 24 values, they all appear in a line next to each other in Firefox:

In Chrome, they appear as a vertical multiple select box.

Complete code for an abbreviated 3 hour example:

<html>
  <head>
    <style type="text/css">
      option { display: inline; }
    </style>
  </head>
  <body>
    <form>
      <select id="aryHours[]" class="select_hours" size="1" multiple="multiple" name="aryHours[]">  
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
      </select>
    </form>
  </body>
</html>

In Chrome, the options do not display inline.

Any explanations why this code does/does not work and are there any other ways to achieve the same layout?

  • 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-06-10T15:47:15+00:00Added an answer on June 10, 2026 at 3:47 pm

    I don’t think you should (can?) make <option> elements inline like that. Try using checkboxes instead. Something like this:

    <!DOCTYPE html>
    <html>
     <head>
         <title>Inline Options</title>
         <style>
             ul {
                 list-style:none;overflow:hidden;
             }
             ul li {
                 lit-style:none;
                 float:left;
                 position:relative;
             }
             ul li input[type="checkbox"] {
                 position:absolute;
                 top:0;
                 right:0;
                 bottom:0;
                 left:0;
                 width:100%;
                 height:100%;
                 opacity:0;
             }
             ul li input:checked + label {
                 background:blue;
             }
         </style>
     </head>
     <body>
         <form action="#" method="get">
             <ul>
                 <li>
                     <input type="checkbox" name="aryHours[]" id="checkbox1" />
                     <label for="checkbox1" class="">Option 1</label>
                 </li>
                 <li>
                     <input type="checkbox" name="aryHours[]" id="checkbox2" />
                     <label for="checkbox2" class="">Option 2</label>
                 </li>
                 <li>
                     <input type="checkbox" name="aryHours[]" id="checkbox3" />
                     <label for="checkbox3" class="">Option 3</label>
                 </li>
             </ul>
         </form>
     </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue with line-height that I cannot quite get my head
I'm having a menu spacing issue in IE7 and IE6 that I cannot get
I am having an issue were I cannot get my 'li' width correct. I
I am having an xslt issue that I cannot seem to solve. Right now
Hi guys I am having issue I have this query: SELECT * FROM useraccount
I'm currently having a strange issue whereby all browsers except from Google Chrome are
I am having a small issue that I cannot solve. I am making a
I have seen that many other people are having the same issue as me,
I'm having annoying linker issues - VS2010 claims it cannot find this file, but
Having issue with slider navigation. Works perfectly fine when there are no other unordered

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.