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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:33:26+00:00 2026-06-01T01:33:26+00:00

I am creating a form with <ol> , <label> and <textbox> in asp.net the

  • 0

I am creating a form with <ol>, <label> and <textbox> in asp.net
the form looks like this:

1. Question 1? ___Textbox1____
2. Question Number 2? ____TextBox2____

I want the textboxes to appear in same column (i.e. in same vertical column) like this:

1. Question 1?           ___Textbox1___
2. Question Number 2?    ___TextBox2___

My code looks like this:

        <ol start="1">
            <li class="qOpenEnd">
                <asp:Label ID="lblQ1" AssociatedControlID="txtID1" runat="server">
                    Question1
                </asp:Label>
                <asp:TextBox ID="txtID1" runat="server" />
            </li>

            <li class="qOpenEnd">
                <asp:Label ID="lblQ2" AssociatedControlID="txtID2" runat="server">
                    Question Number 2?
                </asp:Label>
                <asp:TextBox ID="txtID2" runat="server" />
            </li>
        </ol>

My CSS looks like this:

 .qOpenEnd
 {
  float: left;
  clear: left;   
  width: 100%;
  list-style: decimal;
 }
 .qOpenEnd label
 {
  float: left;
  clear: left;
  width: 50%;
  margin-right: 5em;
 }

This working fine for Firefox, but in IE9 the number isn’t showing up!
Any idea? The number WAS showing up in IE9 before I added the float:left, but at that time the textboxes weren’t aligned.

  • 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-01T01:33:27+00:00Added an answer on June 1, 2026 at 1:33 am

    This is your code output in my project on IE9:

    ie9 and firefox output

    Make sure you are in IE9 Standards mode, and not compatibility view (hit F12 to view/switch modes).

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

Sidebar

Related Questions

When creating a new asp.net mvc3 app you get the logon and register form
Lets say I have CSS like this: div.form label input { /* some css
I am creating checkbox elements in Zend Form like this: $element = $this->CreateElement('checkbox', 'CheckIt');
After creating a new form, I usually perform this ritual: Change the name into
I'm doing this tutorial: http://www.phpeveryday.com/articles/Zend-Framework-Database-Creating-Input-Form-P494.html We are building a simple input form using POST
I want creating form field hints where the default value shows 'Password' and on
I'm creating a form with z3c.form and for a textarea, I would like to
The windows form that I designed has 1 label. The text of this label
I have a form for creating an album like following: # app/views/albums/new.html.erb <h2>Details of
I'm creating a css template for form types and want to give form inputs

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.