Now that we've battled through getting the proper content on the homepage of the Almanac, we can dig into some actual styling with CSS.

We decided to go with a handwriting font for some bits of this design. We browse through some fonts on Dafont, and end up downloading Shadows Into Light. The download comes with the font in a format that will work on the desktop, but not all the formats needed for @font-face. So, we run it through Font Squirrel.

We move the fonts into our directory structure where they are supposed to be. Then we copy and pase the @font-face syntax from elsewhere in the project into our Almanac-specific CSS and change the names of the fonts and stuff.

We spend the rest of the time poking and prodding the CSS getting the layout correct, setting colors, and whatnot. It's actually a pretty fun an interesting CSS challenge getting it all laid out correctly. After all, we have very little control over the HTML output. It's just nested lists. So we have to target and float things just right to get the exact layout we envisioned in Photoshop.


  1. User Avatar
    Permalink to comment#

    So what is the latest with needing to have a SVG font for iOS etc? No longer required? Cheers!

Leave a Comment

Posting Code!

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.