Solved

Prevent text from changing cell height

Posted on 2006-06-13
6
143 Views
Last Modified: 2010-04-09
Is there a way to prevent text in a cell from changing its height? The cell has a background image so I want to keep its height static. When the window is resized, the cell also resizes causing the text to fill more of the cell. At a certain point, the text overfills the cell causing the height to increase. What I want it to do instead is prevent the cell from collapsing past that point. Thanks.
0
Comment
Question by:rbichon
  • 4
  • 2
6 Comments
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897160
Hi,

Try this:

<td style="white-space: nowrap">...

---
Harish
0
 
LVL 1

Author Comment

by:rbichon
ID: 16897197
That was close but not quite what I was looking for. I still want the text to wrap to the point that it fills the cell. Once it fills the cell, I want it to stop wrapping. Is that possible?
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897228
Try this:

style="position:absolute;overflow:hidden;"
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897258
Hmm.. you need to give the width and height of the cell too..

style="overflow:hidden; position: absolute; height:100px; width:50px"
0
 
LVL 1

Author Comment

by:rbichon
ID: 16911434
Well, I can't make the width fixed because it is set to 100%. Should I just use a spacer image?
0
 
LVL 37

Accepted Solution

by:
Harisha M G earned 250 total points
ID: 16922587
would this work ?

style="overflow:hidden; position: absolute; height:100px; width:100%"
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now