Filling A Box -> The hard way :)
Posted: Sun Aug 27, 2006 1:56 pm
I have a dynamic web application that allows people to post short stories. And the page that lists all the short stories from all the different users is to show a short exerpt of each short story.
Because I want a certain look of this specific page, I want each "exerpt" to be within a bordered box that is exactly a certain pixeled height. Obviously if I do a strlen($excerpt) output, it will always differ and I won't be able to, with certainty, to fill those fixed-height bordered boxes.
So is there a way with either CSS, PHP, etc.. to allow me to use an excerpt of the short stories and completely fill the containing fixed-height box without having any overflow or without the excerpt coming out too short and not filling the entire bordered box? And just FYI, at the bottom of the bordered boxes is a link that says "continue reading..." that links to the full story.
Any help and ideas on this matter would be greatly appreciated. Thanks so much.
Because I want a certain look of this specific page, I want each "exerpt" to be within a bordered box that is exactly a certain pixeled height. Obviously if I do a strlen($excerpt) output, it will always differ and I won't be able to, with certainty, to fill those fixed-height bordered boxes.
So is there a way with either CSS, PHP, etc.. to allow me to use an excerpt of the short stories and completely fill the containing fixed-height box without having any overflow or without the excerpt coming out too short and not filling the entire bordered box? And just FYI, at the bottom of the bordered boxes is a link that says "continue reading..." that links to the full story.
Any help and ideas on this matter would be greatly appreciated. Thanks so much.