WordPress.org

Ready to get started?Download WordPress

Forums

How to define column width for tables (7 posts)

  1. mmrs
    Member
    Posted 3 months ago #

    Hello, I have created thumbnails inside a table and have 4 columns which I would like to be equally spaced. Can you please advise how to set the column spacing?

  2. jrcollins
    Member
    Posted 3 months ago #

    so you're using different sized images in each column?

  3. jrcollins
    Member
    Posted 3 months ago #

    Try using the table layout property. See here.

  4. wphigh
    Member
    Posted 3 months ago #

  5. mmrs
    Member
    Posted 3 months ago #

    Thanks. I added in the <table> code- <table-layout: fixed> and it turned the table into one column. I had 4 columns and was trying to make them even. Am I missing something?

  6. wphigh
    Member
    Posted 3 months ago #

    try:<table style="width: 100%; table-layout: fixed;">

  7. mmrs
    Member
    Posted 3 months ago #

    Thanks!!! It works!

Reply

You must log in to post.

About this Topic