WordPress.org

Ready to get started?Download WordPress

Forums

Easy Table
[resolved] Bold formatting doesn't work (3 posts)

  1. babyatom
    Member
    Posted 1 year ago #

    Here's my code:
    [table caption="Just test table"]
    no,head1,head2,head3
    1,row1col1,row1col2,row1col3
    2,row2col1,row2col2,row2col3
    [/table]
    In the resulting table the letter '2' is bold but the rest of the row isn't... but it should be, right?

    http://wordpress.org/extend/plugins/easy-table/

  2. takien
    Member
    Plugin Author

    Posted 1 year ago #

    use attr style on each cell.

    [table caption="Just test table"]
    no,head1,head2,head3
    1,row1col1,row1col2,row1col3
    2[attr style="font-weight:bold"],row2col1[attr style="font-weight:bold"],row2col2[attr style="font-weight:bold"],row2col3[attr style="font-weight:bold"]
    [/table]

    it may looks messy.
    alternatively, use CSS for styling.
    add this to the end of style.css on your WordPress theme directory.

    table.easy-table tr:nth-child(3) {
       font-weight:bold;
    }

    note:
    nth-child(3) is for third row.
    if you want to bold every odd row use nth-child(odd).

    table.easy-table tr:nth-child(odd) {
       font-weight:bold;
    }
  3. babyatom
    Member
    Posted 1 year ago #

    Cool - thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.