Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Table will not center in WordPress

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37998
    kloy
    Member

    Why won’t this table in WordPress center?
    I’ve tried
    align=center
    margin: 0 auto

    both inline and through the stylesheet…nothing??

    http://www.revannielawrence.com/?page_id=112

    Also is there a simple plug-in for tables that allows for photos and lots of CSS control?

    #102585
    Paulie_D
    Member

    Have you tried setting the width to 100% rather than a fixed value?

    #102590
    Senff
    Participant

    There is no margin: 0 auto; applied to that table. It’s actually taking the style properties from line 337 in your CSS file:

    .post_content ul, .post_content ol, .post_content table, .post_content dl { margin: 1.5em 0; }

    Either give the table itself margin: 0 auto;, or give the DIV that contains the table the same width as the table (550px).

    #102591
    kloy
    Member

    Thank You!!! Both these suggestions were helpful!!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.