> Have another programming quandary that I'm hoping I can get the list's help > on...I'm not even sure what the technique is called so I'm not coming up > with much so far by Googling for tutorials. > > Basically, we need some way to code a "Show More" function that would allow > us to take a long piece of text, shorten it to X maximum lines, then have a > "Read more" link that when clicked would display the rest of the text on > the page below the first half.
There is no obvious CSS-only solution (cssplay.co.uk has one though) but in terms of browser compatibility and usabilty (keyword enabling for starters), this should be done with a mix of CSS and JS. I will create a demo in a moment. The snag you will run into though is that there is no such thing as "after x lines", as with different font sizes, there'll be more or less lines. -- Chris Heilmann Book: http://www.beginningjavascript.com Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
