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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:19:48+00:00 2026-05-11T08:19:48+00:00

I was going through a site I have just completed, and fixing up some

  • 0

I was going through a site I have just completed, and fixing up some accessibility issues. I had a form:

<input type='hidden' name='redirect' value='thank-you.php' /> <p>Enter your Email Address to receive our Weekly Newsletter</p>                             <input name='email' type='text' id='formifemail' size='21' /> <input type='image' src='images/newsletter_button.jpg' alt='submit button' border='0' name='Submit' id='Submit' value='Send' /> 

This was flagged because their is no tag to identify the input field for entering the email address. So I changed the

tag to a tag like so:

<input type='hidden' name='redirect' value='thank-you.php' /> <label for='formifemail'>Enter your Email Address to receive our Weekly Research</label>                             <input name='email' type='text' id='formifemail' size='21' /> <input type='image' src='images/newsletter_button.jpg' alt='submit button' border='0' name='Submit' id='Submit' value='Send' /> 

and the CSS:

#formItem label {     text-align:center;     line-height:150%;     font-size:.85em; } 

But the text appears as left justified, and not centered. I’ve looked around that there are no obvious bugs. This is happening in both FF 3.x and IE 7.x

  • 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. 2026-05-11T08:19:48+00:00Added an answer on May 11, 2026 at 8:19 am

    This is because label is an inline element, and is therefore only as big as the text it contains.

    The possible is to display your label as a block element like this:

    #formItem label {     display: block;     text-align: center;     line-height: 150%;     font-size: .85em; } 

    However, if you want to use the label on the same line with other elements, you either need to set display: inline-block; and give it an explicit width (which doesn’t work on most browsers), or you need to wrap it inside a div and do the alignment in the div.

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

Sidebar

Related Questions

I am new to Django, i was going through this Django site for building
I was just going through the new MVC Music Store tutorial at asp.net. One
I'm just getting started with ASP.NET MVC and am going through the NerdDinner tutorial.
I'm just starting out learning ASP.NET MVC 3. I've been going through the Music
I've been going through the book The Definitive Guide to Grails (Rocher/Brown) and in
I was going through a website I've taken over and came across this section
So i have a site that I am working on that has been touched
I have just received a requirement to implement spell checking on a web application
I have characters like these on our web site: Fémnyomó That is a street
This is tricky.. I have two sites. Site A and site B. On another

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.