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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:29:23+00:00 2026-06-09T04:29:23+00:00

I have client-side validations on a form that are outputting as label tags. They

  • 0

I have client-side validations on a form that are outputting as label tags. They are displaying the way I want them to, but their width does not automatically adjust to the content within it. I believe this is caused by the width of the container that the form is inside of. Can someone help me fix this? Here is a jsFiddle:

http://jsfiddle.net/4eZY6/3/

If you focus on, then off of the fields you’ll see the validation errors.

Altering the width of the element .home-form-container from 250px to 450px fixes it, but I don’t want that element to be wider. Is this an overflow issue?

  • 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-09T04:29:24+00:00Added an answer on June 9, 2026 at 4:29 am

    Try changing message from “block” to “inline-block”. That appears to fix the positioning issue.

    .field_with_errors .message { display:inline-block; white-space: nowrap; ... }
    

    Block-level elements will break the flow (kind of like clearing a float), but inline-block will keep it in the flow of the element before it, while keeping the block-level properties.

    To keep the message from wrapping, stop the element text from wrapping with the white-space: nowrap property.

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

Sidebar

Related Questions

I have a Django form that needs to do some client-side validation before submitting
I have an HTML5 form that uses JavaScript for the client side validation. If
I have an ASP.NET MVC 2 form that is working perfectly, doing client side
I have a form that is using jQuery Validate plugin for client side validation,
I have some client-side JavaScript validation on a form. It works great. But I
I have a form that relies on javascript to do all the client side
I currently have a Gridview , And I want to use client-side validation to
We have a client side application (Java/Swing) that we need an HTML rendering control
Suppose I have a client side app that sends out requests to a rails
I have multiple but similar client-side iPhone apps, managed as branches in git (all

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.