CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2004, 04:29 PM
chriszanf chriszanf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 65 chriszanf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 32 m 55 sec
Reputation Power: 5
Send a message via ICQ to chriszanf Send a message via AIM to chriszanf Send a message via MSN to chriszanf Send a message via Yahoo to chriszanf
css class for limiting characters on line

I apologise if this has already been asked and covered but Ive just done a search and it turned up nothing.

What Im trying to do is create a css class so that when I get an amount of text return from a db that I can format it so that I have a certain amount of characters on one line before it creates a new line.

What is happening presently is that the data is formatted and it is stretching the table out of line with the format of the page.

Thanks for any help

Chris

Reply With Quote
  #2  
Old April 22nd, 2004, 05:37 PM
chriszanf chriszanf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 65 chriszanf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 32 m 55 sec
Reputation Power: 5
Send a message via ICQ to chriszanf Send a message via AIM to chriszanf Send a message via MSN to chriszanf Send a message via Yahoo to chriszanf
here is a screenshot to demonstrate what I mean. Notice the text has gone out of the table on the right.

this is after a friend suggested using some css code within a <div> tag:

Code:
width:400px;
overflow:scrollbar;


the image shows what I mean.

thanks

Last edited by chriszanf : April 22nd, 2004 at 05:55 PM.

Reply With Quote
  #3  
Old April 22nd, 2004, 06:28 PM
chriszanf chriszanf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 65 chriszanf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 32 m 55 sec
Reputation Power: 5
Send a message via ICQ to chriszanf Send a message via AIM to chriszanf Send a message via MSN to chriszanf Send a message via Yahoo to chriszanf
found what the issue was.....

somehow Dreamweaver had inserted a "nowrap" tag into the first [main] table tag and theis was effecting all the code.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css class for limiting characters on line


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway