If I have a long string of text in say a table cell, how can I make it break so it doesn't cause horizontal scrolling? Thanks :)
DanceInstructor
19
Posting Whiz
Recommended Answers
Jump to PostWhat happens if you apply a width?
Jump to PostI see.
There is a whitespace property, but browser support is frankly pathetic.
http://www.w3.org/TR/REC-CSS2/text.html#white-space-prop
IE doesn't support it at all I don't think.The only hacks I've seen to get around it …
Jump to PostOr simply add a
<br />
which will force your text to move to the next line.
each time you come to the end of the text just insert a<br />
like this and it will automatically make it jump to the next line. Or another way …
Jump to PostExactly my thoughts, he laughs but gives no help what so ever, I'm big on using <div> rather than <table>s but <table>s are needed for certain things. ie: TabularData or Scoring cards, things like that. I never use <table>s unless I really have to. If you can't help and just …
All 15 Replies
DaveSW
15
Master Poster
DanceInstructor
19
Posting Whiz
DaveSW
15
Master Poster
DanceInstructor
19
Posting Whiz
wkd
0
Newbie Poster
Wrams
18
Newbie Poster
wkd
0
Newbie Poster
randyman5775
0
Newbie Poster
Wrams
18
Newbie Poster
SimplyFred
0
Newbie Poster
wkd
0
Newbie Poster
wkd
0
Newbie Poster
SimplyFred
0
Newbie Poster
wkd
0
Newbie Poster
joecap5
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.