Archive: Oct 2012

I’m continuing to make tweaks to the design of this website. For example, the main headings and next/previous details on the post and project pages are now pulled left when viewed in a wide browser window. I’ve also added drop caps and pull quotes to the project pages, as well as a number of pixel adjustments here and there. You probably spotted them immediately.

Drop caps

I’ve added a drop cap to the first letter of the first paragraph on each of the project pages. This is all done in CSS using the following rule:

I’ve modified the blockquote style so that it acts as a pull quote. The CSS looks like this:

It looks best when the browser width is greater than 979px (the last of my slightly arbitrary breakpoints), when the pull quote is pulled out to the left of the main body text. I’ve done something similar for image captions (the one on the image below, for example).

An example of the Pull Quote when viewed in a fairly wide browser window

I’ve added some media queries to handle smaller browser windows which first reduce the margin offset (from the initial -100px) and then remove the float and spread the text across the page so that the pull quote doesn’t end up too narrow when viewed on smaller devices. I’ve also made the pull quote left-aligned on this narrowest window. So it ends up with the following CSS rule: