Answered by:
nowrap not working in FF and Chrome

Question
-
this style:
.whole { white-space: nowrap; }
is used in the following sample:
<p>here is some <span class="whole">text. <a href="theURL">
<img src="image-path"></a></span></p>in order to keep in the same line the word "text." along with the image. However it only works in IE. FF and Chrome send the image to the next line.
Is there a trick?
Sunday, July 10, 2011 4:27 PM
Answers
-
Works fine for me in FF and Chrome (testing with my own image and text).
cheers,
scott
Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.- Marked as answer by geotso Sunday, July 10, 2011 6:00 PM
Sunday, July 10, 2011 5:25 PM
All replies
-
Post a link to your complete page. I see no difference in behavior among the three browsers with just the code you posted.
- Proposed as answer by KathyW2 Sunday, July 10, 2011 8:56 PM
Sunday, July 10, 2011 5:07 PM -
Works fine for me in FF and Chrome (testing with my own image and text).
cheers,
scott
Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.- Marked as answer by geotso Sunday, July 10, 2011 6:00 PM
Sunday, July 10, 2011 5:25 PM -
Hmmm,
In an empty page with just some text and the image, the behavior does work in all three browsers. It is something wrong in the code of the specific page, that I have to find out...
Thank you very much
Sunday, July 10, 2011 5:59 PM -
"In an empty page with just some text and the image, the behavior does work in all three browsers. It is something wrong in the code of the specific page, that I have to find out..."
Which is what my post said. You need to post a link, that code alone works the same in all three browsers.
Sunday, July 10, 2011 8:39 PM