[RESOLVED] Why isn't this working in... Firefox?
I'm using NoWrap in this project I'm developing. I placed it into a <div> tag so that it can only scroll across. However it's not working in Firefox. Yes, I did say it's not displaying properly in Firefox. :sick:
My guess is that it's not a standard attribute, so is there another way to acheive non-breaking lines?
Re: Why isn't this working in... Firefox?
Try <div nowrap="nowrap">
Re: Why isn't this working in... Firefox?
Or use inline CSS
style="white-space:nowrap;"
Re: Why isn't this working in... Firefox?
Thanks, i found that <nobr></nobr> works.
Re: [RESOLVED] Why isn't this working in... Firefox?
<nobr> and other presentational attributes are deprecated. You should use the CSS rule instead.
Code:
div.nonbreaking
{
white-space: nowrap;
}
HTML Code:
<div class="nonbreaking">
lots of stuff
</div>
Re: [RESOLVED] Why isn't this working in... Firefox?
Thanks a lot. The white-space:nowrap works like charm