• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Portfolio layout – 4 images across instead of 3

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Portfolio layout – 4 images across instead of 3

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 13 years, 1 month ago by David Chu.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 2, 2013 at 10:03 am #38934
    faith
    Member

    Hi, I’m using the Balance theme for my site, and the Portfolio template for my homepage. I need there to be 4 images across instead of 3. I already changed the .page-template-page_portfolio-php .featured .post to

    margin: 0 9px 0px; padding: 0 0 10px; width:223px;

    which equals a total width of 937 compared to the original 940 px with the 3 across format.

    Why is my site still showing 3 across? Thanks

    http://www.goldpagedesign.com/testplmaysite/

    http://www.goldpagedesign.com/testplmaysite/
    May 2, 2013 at 5:36 pm #38998
    David Chu
    Participant

    Hi,
    Your assumptions are off, I'm afraid. That margin setting gives you margins on both sides of each image. So that's 18. Padding does not figure in because it's at the bottom. Then you have a width of 223. We're up to 241.

    241 x 4 = 964
    which is too wide in a 960 container.

    Here's your CSS. You have your choice of reducing the 2nd margin figure by 1, or reducing the width figure by 1. The first way fits comfortably at 956, the second fits exactly 960. I'd choose the former. Go ahead and try one of those.

    .page-template-page_portfolio-php .featuredpost .post {
      margin: 0 9px;
      padding: 0 0 10px;
      width: 223px;
    }
    

    If I were super OCD I might make the 2nd margin figure 8.5px. That adds up to exactly 960. ๐Ÿ™‚ But I like having a teeny bit of breathing space.

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble