Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 1st, 2004, 12:46 PM
Authorized User
Join Date: Nov 2003
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to display big sentences in tables/cells

How do I tell a table cell not to display all text blocks-words in the same line, but broke the text to the next line?
I use Dreamweaver and I do not have the wrap text checked.
I tried the properties of table, td, tr marks but with no success.
My site is database-driven, so when I insert a record like this "wwwwwww,wwwww,wwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwww,wwwwwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwww", then the html output is horrible, because my layout aparts from small sized tables and cells. Its' width is very small compared to the sentence above. So, this destructs my whole page layout.
I would like this block to be broken. This problem does not appear when separation mark like comma(,), but I am not always sure there are these things in the text.
I prefer the text block to be broken in some way even if it is not the best one, instead of a destruction of my page layout.

What is the appropriate setting in Dreamweaver? What do I have to select and what to change?
Reply With Quote
  #2 (permalink)  
Old November 1st, 2004, 01:19 PM
Authorized User
Join Date: Nov 2003
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts

I forgot to say that if there is commas with blank spaces, everything is ok.
The problem exists when there are no commas or commas without spaces.
Reply With Quote
  #3 (permalink)  
Old November 1st, 2004, 04:00 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Yeah, this is a known issues with almost any kind of HTML element.

The problem is caused by the fact that the browser cannot determine where to break a sentence, as they are no spaces in the text.

First of all: Is this a real issue? I have tried to tackle this problem before, only to realize that my users are able to come up with more sensible content that I, as a developer, tried to create. wwwwwww,wwwww,wwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwww,wwwwwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwww is something you don't see that often as real content ;)

I think the best (only??) way to overcome this is to have the element that holds your content is set to create scrollbars when necessary.

You can do this with use the Css property overflow, as in the next example:
  <div style="width:200px;border: 1px solid black;overflow: scroll">
For more info: http://www.w3schools.com/css/pr_pos_overflow.asp


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Too Much Brandy by The Streets (Track 8 from the album: Original Pirate Material) What's This?
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using tables to display data (chapter 4) gadjodilo BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 5 August 7th, 2006 01:42 PM
Qry to retrieve from 2 tables and display tsimsha Classic ASP Databases 3 October 29th, 2004 02:03 AM
Fixed height cells in tables 12th_Man HTML Code Clinic 1 July 11th, 2003 01:15 AM

All times are GMT -4. The time now is 11:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.