Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-03-2005, 05:03 PM   #1 (permalink)
thejunior
Junior Member
 
Join Date: Jul 2005
Posts: 24
Default tables problem

Okay I am hand coding a page for someone. I've got a table that when I add a paragraph of text, it all shows up as one line, and resizes the table as wide as the ONE line of text. Anyone know how i can fix this?? thanks in advance
thejunior is offline   Reply With Quote
Sponsored Links
Old 08-03-2005, 05:07 PM   #2 (permalink)
stainofmind
Junior Member
 
Join Date: Jul 2005
Posts: 26
Default

All you need to do is set the width of that table/cell/column, then the text should wrap. I personally only do tabless construction. I dictate areas with CSS.

"WIDTH=x (pixels or "%") may control the span of a table across the browser window. A pixel value is absolute...if the user narrows the browser window, the table will slide off to the right. A percentage value will cause the table to consume that portion of the width, regardless of window size, and will wrap text in cells to suit. If needed, think about these and specify carefully."

Hope that helps.
stainofmind is offline   Reply With Quote
Old 08-04-2005, 08:45 PM   #3 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default

Yeah, you need to put some constraints on the table.

I know of two ways minumum....

1. You can use <br> tags to break up the text into lines:
Ex:
PHP Code:
This is the first line <br>
Second line<br
Third line 
OR

2. Set a width on the table.
Ex:
PHP Code:
<table width="40">
   <
tr>
      <
td>this line will be broken up everytime it reaches the lenght of 40 pixels.</td>
   </
tr>
</
table
Notice the width is in pixels, the text will go down as soon as it reaches the limit, but you can use percentages too Ex: width="50%".... either way this should help solve your problem.
clifford is offline   Reply With Quote
Reply


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

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

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 06:02 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums