Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old September 24th, 2003, 06:43 AM
Authorized User
 
Join Date: Aug 2003
Location: , , India.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default regarding tables

Hi

My Problem is that when the length of the text inside a table is on the increase , the width of the table automatically increases,now I want the width of the table to be constant and the text inside the table should be wraped(goto next line on reaching the end of table)
How do I do It?please give code!!
thankz
Praveen
  #2 (permalink)  
Old September 24th, 2003, 07:21 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Praveen,

The problem with table widths is that the browser will see the width as a recommendation. This means that when it needs more room for content, it will just take more room.

There are a couple of ways around this. You can use CSS to force the width of the table columns. Alternatively, you can add spacer images to the first or last cell of each column to force the width. Using spacer images is considered "bad practice" and "old skool" but if you need to support older browsers as well, it's a viable solution, IMO.

Take a look at the following article:

http://www.evolt.org/article/Liquid_Tables/20/2321/

You may want to follow the 4 links / examples on this page as they show you a couple of solutions.

If that doesn't help, please post your table with content, so we can take a look at it.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating tables within tables in access??? carswelljr Access 3 August 23rd, 2006 01:21 PM
Fixed tables and/or fixed bkgrnd in tables slg111875 Dreamweaver (all versions) 1 June 22nd, 2006 02:31 PM
Tables mistry_bhavin ADO.NET 2 May 4th, 2004 09:16 AM
Regarding Tables spraveens HTML Code Clinic 2 October 20th, 2003 04:46 AM
Tables andy24 Classic ASP Databases 3 July 23rd, 2003 11:09 AM





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