View Full Version : Overflowing text limitation?

02-12-2012, 08:00 PM
Hopefully this is a quick thing...

If there is a block of text inside a div tag that is set to height:0 and overflow:visible, is it possible to limit the number of lines the text wraps to, when a window is resized.

hopefully that made sense. I tried adding a max-height on the p tag, but that didn't do it. I tried another div that is limited, but that didn't work.

Might be another, better way to do this. I was just hoping I could do it with the parent div at height:0, for layout purposes.

02-12-2012, 09:47 PM
have you tried adding a max-height alongside the height on the parent div? Possibly also then get rid of the overflow:visible.