Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • urbanity & architecture
    • projects
    • website design
Blog Quickbits Flexbox Spacing on Last Line of Items

Flexbox Spacing on Last Line of Items

By Forrest Smith - Drempd.com

I had tiles spaced nicely on my page for all of my blog posts. All was fantastic, except for the last row, which had a large space in between the blog posts. So my layout had three tiles across for each row, but by the end of the page, I had run out of blog posts, so that final row only had two tiles to display. Because of the 'justify-content: space-between;' declaration in my stylesheet, it put one tile on the far left, and one on the far right, with giant white space in between. To fix this, use the following on the div containing the tiles:

.blog-list:after {

   content: '';

   flex: auto;

}

Posted on July 25, 2022October 2, 2022 in Quickbits
  • Adventure

    • adventure
    • gravelgrinding
    • hiking
    • running
  • The Built Environment

    • architecture
    • urbanity
  • Locations

    • san diego
    • portland
  • Freelance Life

    • freelancing
    • productivity
  • Web Dev

    • css
    • entrepreneurship
    • git
    • handlebars
    • html
    • inkscape
    • photoshop
    • php
    • sass
    • web design
    • web development
    • saphire

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance