Independent Student Newspaper Since 1969

The Badger Herald

Independent Student Newspaper Since 1969

The Badger Herald

Independent Student Newspaper Since 1969

The Badger Herald

Advertisements
Advertisements

Photo display in stories

With the old site, we could display two photos within a story, and no captions. Though most stories have no more than one photo, I thought I could do better.

We now can display an arbitrary number of photos in the sidebar of an article. Not only can we display the photo credit, but we can now display the captions as well.

Also, as what I think is a nice touch to an article’s design, I wrote a script that checks the dimensions of the top photo for a story. If the photo is sufficiently wide, it will push down the story and be displayed full width under the headline and subhead (We previously couldn’t display subheads either.). Here’s an example: https://badgerherald.com/sports/2009/02/04/shattuckkeepsup_el.php

Advertisements
Advertisements
Leave a Comment
Donate to The Badger Herald

Your donation will support the student journalists of University of Wisconsin-Madison. Your contribution will allow us to purchase equipment and cover our annual website hosting costs.

More to Discover
Donate to The Badger Herald

Comments (0)

All The Badger Herald Picks Reader Picks Sort: Newest

Your email address will not be published. Required fields are marked *