• 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

Clearing Content Column Classes

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 › Clearing Content Column Classes

This topic is: resolved

Tagged: clearing, Columns, css

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by bionary.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 2, 2015 at 3:40 pm #154607
    bionary
    Member

    The Genesis Content Column classes don't appear to clear properly, as in clear the floated styles used to created them.
    For example this doesn't work:

    <!-- row 1 -->
    <div class="one-half first"><img src="some-url"></div>
    <div class="one-half">Some Description text</div>
    <!-- row 2 -->
    <div class="one-half first"><img src="some-url"></div>
    <div class="one-half">Some Description text</div>
    <p>This next block of content content sneaks up into the float</p>

    Back in the day I would add something like this after the columns:
    <br clear="all"/>

    And I realize that's probably not the html5 standard now, but it does work...kind of. If I code it while in the "text" editor it clears the floated columns but once I switch back to wysiwyg mode "visual" wordpress begrudgingly converts all <br/> (breaks) into "& -nbsp;"

    So clearing the columns with break tags doesn't appear to be a good solution.

    Can somebody please advise on how to get the columns working properly.

    June 2, 2015 at 4:07 pm #154612
    James
    Participant

    Genesis does have a .clearfix property already in the stylesheet.

    so try that

    <div class="clearfix></div>

    June 2, 2015 at 4:23 pm #154613
    bionary
    Member

    @Jamie, thanks for that.
    That indeed does work, but I find it strange that all the genesis columns demos and how-to's do not mention this markup.
    For anyone in need here's what works for me:

    <!-- row 1 -->
    <div class="clearfix">
    <div class="one-half first"><img src="some-url"></div>
    <div class="one-half">Some Description text</div>
    </div>

    Thanks again.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2023 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