• 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

Image will not align right

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 › Image will not align right

This topic is: resolved

Tagged: alignment, generate, image align

  • This topic has 7 replies, 2 voices, and was last updated 13 years, 5 months ago by cehwitham.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 7, 2013 at 2:08 pm #18727
    greenecon
    Member

    http://www.thegreeneconomy.com: Generate

    The image looks just fine in WordPress, but when I view on the web, it is always flush left, not right or center. I have tried all KINDS of things, but still, flush left. I saw a similar post, without an answer, but now I can't find that post so am adding mine.  I looked at wordpress.org, and they suggested I add the following to my CSS:
    img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    img.alignright {
    margin: 0 0 5px 10px;
    display: inline;
    }

    img.alignleft {
    margin: 0 10px 5px 0;
    display: inline;
    }

    .alignright {
    float: right;
    }

    .alignleft {
    float: left;
    }

    I did, no luck.  any ideas? It's a real problem for a visual site like ours.  It sstarted when we updated to WP 3.5x.  It has NOT been a good experience.

    February 18, 2013 at 11:20 am #21033
    cehwitham
    Participant

    On line 2840 of style.css you have;

    .entry-content img {
    float: left;
    padding-right: 20px;
    }

    This is over riding the .alignright style.

    Either change line 1435 from .alignright to .entry-content .alignright or remove the float:left; property from line 2840.


    Twitter: cehwitham Web: cehwitham.com

    February 21, 2013 at 7:15 am #21936
    greenecon
    Member

    Did what you suggested, but it made the images on the  home page and the category pages no longer wrap.  Here's what happened below.

    /* atk 2-2013 Recommend we remove 'float left' but that messed with home page */

    .entry-content img {
    float: left;
    padding-right: 20px;
    max-width: 100%;
    }

    .avatar,
    .featuredpage img,
    .featuredpost img,
    /* removed 'float left' to hopefully let images go either way. messed with category pages ATK 2-20-13  */
    .post-image {
    float: left;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 4px;
    }

    February 21, 2013 at 7:24 am #21940
    cehwitham
    Participant

    Adding back in the following would sort out the homepage:

    .home .entry-content img {
    float: left;
    padding-right: 20px;
    }


    Twitter: cehwitham Web: cehwitham.com

    February 21, 2013 at 2:48 pm #22052
    greenecon
    Member

    You are becoming my hero. Will try this.  Tana

    February 21, 2013 at 2:54 pm #22054
    cehwitham
    Participant

    Glad it's going well.


    Twitter: cehwitham Web: cehwitham.com

    February 21, 2013 at 3:04 pm #22057
    greenecon
    Member

    IT WORKED IT WORKED IT WORKED!  Jump, jump, shout, jump, shout, jump, jump.

    February 21, 2013 at 3:11 pm #22058
    cehwitham
    Participant

    Awesome!


    Twitter: cehwitham Web: cehwitham.com

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