Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    There’s not really much space around the table, only the cell padding. Try this new “Custom CSS”:

    .tablepress-id-2 {
    	width: 300px;
    	float: left;
    	background-color: rgb(27,27,27,0.5);
    	margin: 0 !important;
    }
    .tablepress-id-2 tbody td {
    	padding: 0;
    }

    Then, you should slightly change the HTML structure in the cells: You should not need the <p> around the image, so I suggest to remove that.
    Then, there are some extra line breaks at the end of the cell which also add white space.

    Regards,
    Tobias

    Thread Starter Dito Veloce

    (@dito-veloce)

    wow Tobias you are THE MAN! thanks a lot for your quick answer

    there are some extra line breaks at the end of the cell which also add white space.

    I have modified all, and still have a little space at the bottom of the cell , do you detect anything strange in the code?

    Do you know if there is any way to increase the space between text lines in the cell or table (line height) ?

    tks a lot for your support!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I don’t see space at the bottom of the cell, there’s only that black image.

    To increase the line height, just add something like

    line-height: 20px;

    to the second block in the CSS from above.

    Regards,
    Tobias

    Thread Starter Dito Veloce

    (@dito-veloce)

    oh Tobias I am very happy as I aligned the image to the bottom using a piece of code from this forum (worked!), and now all custom css is :

    .tablepress-id-2 {
    	width: 300px;
    	float: left;
    	background-color: #2d2d2d;
    	margin: 0 !important;
    }
    
    .tablepress-id-2 tbody td {
    	padding: 0;
    	line-height: 20px;
    }
    
    .tablepress .row-hover tr:hover td {
    	background-color: #3b3b3b;
    }
    
    .tablepress-id-2 img {
    	vertical-align: bottom;
    }

    My final doubt is: do you know if there is any way to add a little of margin in the left and right sides of the text inside this column?

    Thanks a lot, again !!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you could add some padding on the left and right. Just change

    padding: 0;

    to

    padding: 0 5px;

    Regards,
    Tobias

    Thread Starter Dito Veloce

    (@dito-veloce)

    perfect Tobias, many thanks for your support! all worked!! 😀

    do you perhaps know, how to set an specific background color (on mouse over) for each colum inside of a table?

    I have this code, but it affects all colums the same on mouse over, and I don’t need that :

    .tablepress-id-1 .row-hover tr:hover td {
    background-color: #cccaca;

    I need (on mouse over):

    columnA=color1 / columnB=no color / columnC=color1 / column4=no color

    http://www.phonecovers.tk/

    thanks for your help !

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you’ll basically just have to move the :hover to the columns:

    .tablepress-id-1 tr .column-1:hover,
    .tablepress-id-1 tr .column-3:hover {
      background-color: #cccaca;
    }

    Just to make sure that nothing interferes, you should then also turn off the Row Highlighting feature on the “Edit” screen.

    Regards,
    Tobias

    Thread Starter Dito Veloce

    (@dito-veloce)

    MAGIC Tobias !!! You are number one.

    T H A N K S !

    Plugin Author TobiasBg

    (@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 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unable to remove table border, margins, collapse, etc.’ is closed to new replies.