Notebook layout

This is a modification of my flexbox template that I made specifically for Farah's offbrand Tumblr page. As a result, it's very specifically geared towards blogs. I've tried to strip out some stuff to make it a little more general-purpose, but it will still be easiest to use with blogs. As always, you're free to mutilate it to fit your needs. Alternatively, if you really want to go ham-handed on the knockoff Tumblr approach, you can rip the code from the aforementioned Farah Tumblr page, which includes stuff like "reblogs."

Most of the visual branding of this thing, along with the name itself, is inspired by the Notebook Tumblr theme.

Updated: 12.4.24

Using this abomination

Is this annoyingly complex? Yes. Is it still easier to parse than a real Tumblr theme? Also yes.

Adding blocks

There is a very specific element wrapping pattern you need to follow for the styling to look correct. Usually, you'll probably be splitting your page into sections, so use the <section> tag with the "post: class with the following structure:

<section class="post">
<div class="article-content">
THIS IS WHERE YOUR TEXT ACTUALLY GOES
</div>
<footer class="article-footer"><div class="date">Optional footer line, you can put a date here. Delete if not using</div></footer>
</section>

There are two scenarios where you don't want to use section: if you're doing an actual list of blog posts, each post should be wrapped in an article tag, so use <article class="post"> instead. If you're just using the boxes for stylistic purposes, use <div class="post">. (If you're not sure whether that's the case, you should most likely use a regular div if there's no header at the beginning of the section.)

Tags

The footer is optional, so just delete it if you don't want it. You can also add "tags" to the footer in true Tumblr fashion:

<footer class="article-footer"><div class="date">Date or whatever</div> <div class="tags"> <span class="tag">#tag here</span> </div> </footer>

Tags can contain links without any issues.

Image posts

You can add a main image to a section by putting it in front of the article-content element. It will separate the image from the rest of the "post" content like in a Tumblr image post. If you want inline images (i.e. the image is inside the box), you can just add them normally.

<section class="post">
<img src="IMAGE PATH" alt="ALT TEXT" class="postimage" />
<div class="article-content">
THIS IS WHERE YOUR TEXT ACTUALLY GOES
</div>
<footer class="article-footer"><div class="date">FOOTER</div></footer>
</section>

If you're still confused, the next post has the full enchilada (image and tags) as a demo.

600 BC
Lungfish meme
Image description

A meme reading "I am not a toy. I am not a Christmas present. I am a 109 year commitment. Please think hard before you give someone an Australian Lungfish this Christmas." The text is superimposed on a photo of an Australian Lungfish.

578 notes
#memes #funny

More demos

  • This
  • is
  • a
  • list
    • List
    • inside
    • of
    • list