• 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

center widget (or add a margin to left and 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 › center widget (or add a margin to left and right

This topic is: not resolved

Tagged: alignment, widget spacing

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 10 months ago by Matt Mizwicki.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 9, 2014 at 8:45 am #113564
    gregpayette
    Participant

    I can float left. I can float right.

    But I'd like to center an entire widget, keeping it at 95% width so there's a touch of space on either side.

    (The specific widget is the executive pro theme...CTA widget)

    Thanks for any help.

    July 9, 2014 at 1:10 pm #113597
    Matt Mizwicki
    Member

    You should be able to add (or change what is already there) something like this to your css file...

    
    .name-of-actual-widget-class{
    width: 95%;
    margin-left: 2.49%;
    margin-right: 2.49%;
    }
    
    July 9, 2014 at 2:42 pm #113625
    gregpayette
    Participant

    Perfect Matt. Thanks for the help. - Greg

    July 9, 2014 at 3:02 pm #113629
    Matt Mizwicki
    Member

    No worries! Glad i could help.

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