Jump to content
Sign in to follow this  

Wordpress table Centralisation

Recommended Posts

I'm trying to create a Website using Wordpress 3.2.1. with Tinymce Advanced for the tables. I can get the Table centralised on the Edit Page, no problem. But, when I Save Draft then Preview it's moved over to the left. I've tried all sorts of permutations but it won't have it. I've looked on Youtube and there's many who tell you how to Install Tables but none show how to Centralise. Any help please!:huh:

Share this post


Link to post
Share on other sites

There are a few ways to do it, there are a couple I'd try first, which one you do depends on whether you care whether it's a "hacky" solution or not.

 

The hacky one...

<center><table>{table content here}</table></center>

but not 100% if that would work...

 

The better way

<table class="mytablename">{table content here}</table>

then in your stylesheet...

.mytablename {
width: 500px; (or whatever width)
margin: 0 auto;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.