• Resolved gpsguido

    (@gpsguido)


    Hi Tobias,

    I have just installed the plugin and stugling with the with of the colums and table.
    As you can see on https://www.gps-info.nl/2015/test-tabel/ .

    Tried several setttings.

    in the extra css code I have the following css added.

    .tablepress-id-1 {
    	width: 560px !important;
    }
    
    .tablepress .odd td {
    	background-color: #ccffcc;
    }
    
    .tablepress .even td {
    	background-color: #ffffff;
    }
    
    .tablepress .row-hover tr:hover td {
    	background-color: #99cc99;
    }

    Where the colors are working perfect, the width is causing problems.
    When looking into the source of my post I see Clearfix on you table, could this cause the problem.

    hope you can help, I would like to ad more colums into my wp site.
    Danke dir.

    Guido

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this basically is that the two images are added with a caption that is inserted with a <div> width of 310 px.
    To override this, please try adding this “Custom CSS”:

    .tablepress-id-1 .wp-caption {
    	width: auto !important;
    }

    Regards,
    Tobias

    Thread Starter gpsguido

    (@gpsguido)

    Hi Tobias,

    thanks for the quick reply.
    Problem solved.

    perhaps I will insert images without the wpcaption class.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    Note that it’s not directly the wp-caption class that’s causing this, but the explicit style="width:310px;" that the <div> containers get.

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘table width not working’ is closed to new replies.