• Resolved jbrown9876

    (@jbrown9876)


    Hello,
    I am new to creating websites in general so please forgive me in advance.
    I am creating two tables for my website using tablepress.

    I am attempting to adjust column widths on my tables and using the following codes in CSS:
    .tablepress-id-1 tbody td {
    font-family: Tahoma;
    font-size: 12px;
    color: #0235A4;
    }

    .tablepress-id-2 tbody td {
    font-family: Tahoma;
    font-size: 12px;
    color: #0235A4;
    }

    .tablepress-id-1 .column-1 {
    width: 100px;
    }

    .tablepress-id-2 .column-1 {
    width: 100px;
    }

    .tablepress-id-1 .column-2 {
    width: 110px;
    }

    .tablepress-id-2 .column-2 {
    width: 110px;
    }

    .tablepress-id-1 .column-3 {
    width: 150px;
    }

    .tablepress-id-2 .column-3 {
    width: 150px;
    }

    .tablepress-id-1 .column-4 {
    width: 120px;
    }

    .tablepress-id-2 .column-4 {
    width: 120px;
    }

    .tablepress-id-1 .column-5 {
    width: 130px;
    }

    .tablepress-id-2 .column-5 {
    width: 130px;
    }

    .tablepress-id-1 .column-6 {
    width: 70px;
    }

    .tablepress-id-2 .column-6 {
    width: 70px;
    }

    .tablepress-id-1 .column-7 {
    width: 80px;
    }

    .tablepress-id-2 .column-7 {
    width: 80px;
    }

    .tablepress-id-1 .column-8 {
    width: 350px;
    }

    .tablepress-id-2 .column-8 {
    width: 350px;
    }

    However the second table is working correctly while the first table is not adjusting according to the CSS commands.

    Please let me know how to fix this!

    Thanks in advance
    Joshua

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    From what I can see, your commands are actually respected (to a large degree). It’s just that one table has 7 columns and the other has 8. Thus, the widths that you are setting are not really matching.

    But do you actually really have to set ALL column widths? Sometimes, one can achieve better results by just setting some columns, and let the browser handle the rest.

    Regards,
    Tobias

    Thread Starter jbrown9876

    (@jbrown9876)

    Tobias,

    Unfortunately yes I had to set up the column widths individually since the browsers made it look horrible. This was the only way I could set it up so it looked correct on all browsers. (Internet Explorer, Mozilla, & Chrome)

    I am counting 8 columns for each table (just reviewed that to make sure).

    Could this be a java script error where it is not reading the css?

    Thanks

    • This reply was modified 7 years, 8 months ago by jbrown9876. Reason: spelling
    • This reply was modified 7 years, 8 months ago by jbrown9876.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no, the top table at http://greatlakesaquatic.com/stock-list is clearly only showing 7 columns for me 🙂
    It does not have the “Common Name” column, which the second table has. Is that column maybe marked as “hidden” on the table’s “Edit” screen?

    Regards,
    Tobias

    Thread Starter jbrown9876

    (@jbrown9876)

    Thanks…

    Apparently it was hidden. It was showing on my view, which was probably creating the problem…

    Not sure why it was doing that, but it seemed to fix the issue.

    Thanks for the assistance!!!
    Joshua

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Column Width On Two Different Tables’ is closed to new replies.