• 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

Certering pricing Tables

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 › Certering pricing Tables

This topic is: not resolved
  • This topic has 9 replies, 2 voices, and was last updated 11 years, 9 months ago by rfmeier.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • June 6, 2014 at 1:55 pm #108371
    RobG
    Member

    Hello everyone, I was hoping someone here could help me out with a small problem. I've added some pricing tables to my main page and for some reason I can't get them centered here's the site if you would like to take a look http://robgoss.com/

    Thank in advanced for any help with this. RobG


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    June 6, 2014 at 2:03 pm #108374
    rfmeier
    Member

    Rob,

    Here is what I came up with;

    /* style.css line ~2882 */
    .pricing-table{
    	width: 300px;
    	padding: 0;
    	list-style: none;
    	float: none; /* remove floats */
    	display: inline-block; /* set display to inline-block from inherit */
    	position: relative;
    	vertical-align: top; /* set vertical align to top */
    	text-align: center; /* make sure text-align is set to center */
    	background: #fff;
    	position: relative;
    	border: solid 1px #f1f1f1;
    	z-index: 9;
    	margin-right: 10px;
    	-o-transition: box-shadow .3s linear, opacity .3s linear;
    	-moz-transition: box-shadow .3s linear, opacity .3s linear;
    	-webkit-transition: box-shadow .3s linear, opacity .3s linear;
    	transition: box-shadow .3s linear, opacity .3s linear;
    }

    It may possibly help to set the parent .pricing-tables to text-align: center; , but I am not sure if it will really make a difference.


    Ryan Meier – Twitter

    June 6, 2014 at 2:10 pm #108376
    RobG
    Member

    Hello Ryan, thanks so much for responding, It's not the text I need aligned it's the tables it self. I want them centered in the middle of the widget. I've tryed just about everything I know but no luck.


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    June 6, 2014 at 2:20 pm #108378
    rfmeier
    Member

    Rob,

    The text-align attribute will center more than just text. Removing the float and setting the display to inline-block is the key.


    Ryan Meier – Twitter

    June 6, 2014 at 2:21 pm #108379
    rfmeier
    Member

    Rob,

    Here is a screenshot. Centered elements


    Ryan Meier – Twitter

    June 6, 2014 at 2:25 pm #108380
    RobG
    Member

    Are you saying to add (None) were the float attribute is within the style code? Because that attribute is in a few places left and right.

    I tyred removing it from the line you pointed out and it centered them but also stacked them as well.

    Thanks so much


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    June 6, 2014 at 2:27 pm #108382
    rfmeier
    Member

    Yes sir. In this case, floating causes more problems than it solves.


    Ryan Meier – Twitter

    June 6, 2014 at 2:31 pm #108385
    rfmeier
    Member

    Rob,

    The stacking is due to display: block;. Set that to display: inline-block like I posted in the css above.


    Ryan Meier – Twitter

    June 6, 2014 at 2:35 pm #108386
    RobG
    Member

    Thanks so much Ryan I think you nailed it, Hey by the way nice to meet ya I'm RobG 🙂 big help Thank you so much...


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    June 6, 2014 at 2:40 pm #108387
    rfmeier
    Member

    You are very welcome and nice to meet you too, Rob! Good luck with the site.


    Ryan Meier – Twitter

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