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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:06:55+00:00 2026-06-18T22:06:55+00:00

I have the following HTML markup (simplified) <div class=controlDiv style=white-space: nowrap> <div class=pre></div><input style=width:

  • 0

I have the following HTML markup (simplified)

<div class="controlDiv" style="white-space: nowrap">
  <div class="pre"></div><input style="width: 100%"><div class="post"></div>
  <div class="validationMsg" style="white-space: normal">some message</div>
</div>

the inner Div (validationMsg) shows dynamically, in FF the text message is wrapped correctly, it’s non longer than the input field above.

but in IE8 white-space property is ignored, text isn’t wrapped automatically. I did some experiments in IE developer tools, I have turned of white-space property, when wrapping was applied correctly (but fails formating of the input fields pre and post symbols, where we need to disable wrapping)

code looks like a little bit mess, but the used framework is very strict, so I was able to append only a new div or paragraph into the controlDiv.

  • 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-18T22:06:56+00:00Added an answer on June 18, 2026 at 10:06 pm

    It may not the best solution, but what IE acts is that nowrap from parent IS APPLIED to layout of validationMsg, so it’s not possible to set “white-space: normal” by itself. My solution is to have a wrapper for validationMsg with style “width: 100% (or any size that you want to apply to validationMsg div); white-space: normal”, so layout looks good to IE as well as other browsers.

    Here is an example that I posted: http://jsbin.com/edeqam/1

    It looks consistant on all browsers.

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

Sidebar

Related Questions

I have the following HTML markup: <div id=step1 class=step> <h1>Enter code</h1> <p><input type=text value=<%=
I have the following html markup: <div class=wrap_select> <span class=select id=selectdateRange>Today, 25 March, Sun</span>
I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have following HTML markup, <div id=subcontent_l> <p> <a href=/membership-packages/><img height=202 width=644 alt= src=http://74.52.72.231/wp-content/uploads/2010/06/banner1.jpg
I have the following HTML markup: <body> <div class=wrapper> <div class=head> <p class=title>title</p> <a
If I have the following HTML markup: <div class="foo">bar</div> How can I find which
I have the following HTML markup: <div class=votes meta engagement> <span class=vote-count> <span class=vote-total>
I have the following html markup: <div id=com_loaded> <div id=com_loaded_userpic><a href=# class=tooltip><img src=pic.jpg class=img_poster
I have the following markup: HTML <div class=container> <div class=sidebar> info <br/> info <br/>
I have the following html markup on my page, <div id=sig_container> <div id=layer1 class=layer

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.