I have come across many different methods for expanding elements on webpages, such as using divs with javascript and jquery. I am curious to know what the most optimal and user-friendly approach is in terms of performance, among other things.
For instance, I am currently working on a new website where I have a news section on the homepage. I want the news items to have a specific height, like 250px, and to span the width of the container (using the 960 grid CSS).
Here is my layout:
<div class="grid_10 news">
<article></article>
<article></article>
<article></article>
<article></article>
</div>
Each article includes information, metadata, and a "read more" link on the right side that should expand the article to its full height.
Currently, I have not specified a height or applied any specific CSS to the article (other than display: block). What technique would you suggest for achieving this, and how would you go about implementing it?
Cheers.