• Resolved rasinton

    (@rasinton)


    I have a very simple question to do with column/table width.

    If you go to our website and scroll down a bit then you will see 2 tables (of teams performance in leagues)

    I would like to reduce the width of the columns and have tried settings width to a smaller value. However, I suspect there may be an overall table width setting that is preventing the table for contracting.

    If anyone can help, I will be most grateful.

    Here is the code I have in the “Custom CSS” bit…..

    #content .LeaguePosition-Format {
    	border: 3px solid #000000;
    }
    
    .LeaguePosition-Format th,
    .LeaguePosition-Format td {
    	padding: 0;
    	border: thin solid #000000;
    	text-align: center;
    	width: 20px;
    	font-size: 16px;
    	line-height: 12px;
    }
    
    .LeaguePosition-Format tbody .column-1 {
    	width: 100px;
    	text-align: left;
    }

    https://wordpress.org/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.

    Yes, it’s the width of the table that needs to be adjusted, too.

    Just extend the first block of CSS to

    #content .LeaguePosition-Format {
    	border: 3px solid #000000;
    	width: auto;
    }

    and your individual column widths will be respected.

    Regards,
    Tobias

    Thread Starter rasinton

    (@rasinton)

    That’s great, Tobias

    Thanks (as always!)

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

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

The topic ‘Help please with Table width’ is closed to new replies.