Solved

Prevent text from changing cell height

Posted on 2006-06-13
6
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

734 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