Msg#: 3798332 posted 5:05 pm on Dec 2, 2008 (gmt 0)
This one is quite tough been thinking about it for a while and cant work out a good method to do this.
I have some dynamically generated content in a blockquote that I need to restict the height on (as sometimes it can be very long) there i want to have a surrounding div with a height of 110px and overflow hidden.
Thats all great looks good fits in with the design. Then I need to get a link to show to full content if the user clicks this link. Now this would be a simple set the surrounding div height to auto and then change the link to a collapse link and set the height back to 110px if the user clicks again.
Other solution was a server side char length check however the content contains
<br /> tags therefore could jump down the height resriction too quickly.
Only one problem is sometimes the content fits in the 110px area therefore do not wont to show this expanding link. I have thought of js checking the height if over 110px then adding a button then setting the height to 110px. However this causes a lot of jumping around on the page which I do not want.
Other problem is the content needs to remain in this blockquote for seo, it cannot be split out accross 2 divs or 2 blockquotes.
I have looked a little into onoverflow which is a XUL thing. Not 100% sure what this is (think its only FF as it seems to be mozilla).
Any ideas, thoughts, wacky methods would be welcome to try and bash this one out.