padding in the table

  • Unknown's avatar

    Hi
    I need a space between the photos (which are in the table) and I am trying to add them via additing padding to the table
    <table cellpadding=”40″>
    but it does not work….
    where should i look to fix it?
    page: https://russiaocr.ru/contact-2/
    thanks a lot in advance!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, nearly all of the html styling for tables is now depreciated and no longer supported in HTML5 and in modern browsers. What I would suggest is to remove the cellpadding from the table html tag and add a css class like this
    <table class="my-table">
    and then add this to your custom CSS which will add padding to the table cells (td elements).

    .my-table td {
    	padding: 0 5px 0;
    }

    The first number is the top padding, the second is the left/right padding and the third is the bottom padding.

  • The topic ‘padding in the table’ is closed to new replies.