All of these factors must calculated with care in order that the rhythm is maintained. jMetronome is a jQuery plugin which can take care of maintaining a correct vertical rhythm on your pages, even if they contain media elements such as images or videos.