|
Posted by dorayme on 04/26/06 03:44
In article <ia11i3-ngv.ln1@ophelia.g5n.co.uk>,
Toby Inkster <usenet200604@tobyinkster.co.uk> wrote:
> dorayme wrote:
>
> > nowrap is deprecated in HTML 4.01 What are folk using to achieve
> > the same effect in a table cell for some text
>
> As Neredbojias said, "white-space:nowrap". *However* remember CSS is for
> optional presentational niceties -- if your non-breaking space is
> important to you (and your users), then use " ".
Well, I suppose, if I was to bet, I would say "optional
presentational" was odds on in my case. There are even advantages
to a phone number wrapping - to take one of my cases - like
putting off the time a horiz scrol bar will appear. But, on the
other hand, I prefer, and probably most others would prefer,
other things in the row to wrap instead, like addresses.
I have many tables of information that fill whole pages. They
look just as beautiful now as they did before. There are many
different techniques to be considered. I am ashamed to mention
the one I actually used - alt.html has given me a conscience and
it preyed on it till the pressure forced a change. I used to have
a swashbuckling nature and you lot have killed my spirit.
I recently did stick between things like phone number
parts (08 5375 9486) and no need for col width of
any kind. A refinement being to just do it to one phone number
(any one in the col will do) and the rest of the 8 digit numbers
on each row never wrap, the one that has been set via
forces the issue all on it own because of <g> the magic of
tables</g>.
Then I thought, no, surely nowrap. This I have done in one little
line in a css sheet to a class. One (any) item in the col of
phone numbers (to take a case) gets the class and this forces the
width for the rest. I was well pleased and feeling very goody
goody and then you come along and throw a doubt in the works!
But you now make me reflect on what is an important (not at all
optional presentational) need for no wrapping. If a picture
wrapped, it would be important to tell it to nowrap because where
would one put in ? True, this is silly. OK, thinking
further aloud, an important use of no breaking space?
I remember an interesting thread a while ago about an h1 and a
need to break (and go into smaller text on the next line - I
think?). A sort of mirror image of the issue here in a way. And
was a bit miffed about the fundamentals behind it though it was
clear enough what to do in practice.
--
dorayme
Navigation:
[Reply to this message]
|