• 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

Centering 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 › Centering Tables

This topic is: not resolved

Tagged: centering, tables

  • This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by emasai.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 31, 2016 at 1:27 pm #192429
    BlakeN
    Participant

    Hi,

    I what seems to be the correct coding in place but for some reason the tables are not centering on the page.

    <table class="aligncenter" style="height: 156px;" width="639">
    <tbody>
    <tr>
    <td width="312">After Treatment Assemblies</td>
    <td width="312">Price</td>
    </tr>
    <tr>
    <td width="312">Initial 12 Months/100K</td>
    <td width="312">$1,450</td>
    </tr>
    <tr>
    <td width="312">Initial 12 Months/125K</td>
    <td width="312">$1,650</td>
    </tr>
    <tr>
    <td width="312">Initial 24 Months/200K</td>
    <td width="312">$1,950</td>
    </tr>
    <tr>
    <td width="312">Initial 24 Months/250K</td>
    <td width="312">$2,190</td>
    </tr>
    </tbody>
    </table>

    August 31, 2016 at 2:08 pm #192431
    emasai
    Participant

    A link to your site would help you get an answer to your question.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    August 31, 2016 at 2:21 pm #192432
    BlakeN
    Participant

    Truck Warranty Programs

    August 31, 2016 at 2:31 pm #192433
    emasai
    Participant

    You have added inline styling for the height but not for the width.
    <table class="aligncenter" style="height: 156px;" width="639">
    should read
    <table class="aligncenter" style="height: 156px; width: 639px">

    Quite frankly it looks strange with some tables left aligned and others centered


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

  • 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

© 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