Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2004, 12:46 PM
Authorized User
 
Join Date: Nov 2003
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?
 
Old November 1st, 2004, 01:19 PM
Authorized User
 
Join Date: Nov 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old November 1st, 2004, 04:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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:
Code:
<html>
<head>
</head>
<body>
  <div style="width:200px;border: 1px solid black;overflow: scroll">
    wwwww,wwwww,wwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww,wwwwwwww,wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  </div>
</body>
</html>
For more info: http://www.w3schools.com/css/pr_pos_overflow.asp

Cheers,

Imar
---------------------------------------
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?





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





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