troubleshooting Question

Fixed width & wrap text

Avatar of tiger0516
tiger0516 asked on
CSS
4 Comments1 Solution499 ViewsLast Modified:
Hi there,

I have a table and one TD's width is 160 px. I want to set this TD's width fixed. I have set its width to 160 in CSS but if I type aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (a very long text), then the width of the TD will expand as well. I want to wrap such kind of long text (it is because that I have RSS feeds (news) here. Some news' titles are longer than 160 px.) so that no matter how long do I input, the TD always has fixed width and will wrap the long text to multi-lines of text.

I tried but do not get through. Any help? Thanks a lot.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros