Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter terryau

    (@terryau)

    Hi thanks will try, but have to go out now.
    Terry

    Thread Starter terryau

    (@terryau)

    Good morning Renee’,

    Did as you suggest, it made no difference. Maybe I should go back to the table which was made in access and attempt to reduce its size.
    Terry

    I think this can be beaten with the right custom css. It seems a shame to reduce the size of the table from what you wanted.

    Renee’s line:

    margin: 2em auto;

    must end with a semi-colon, and you have a colon. The colon will stop it working.

    We may have to try a few alternatives to get it looking good.

    Thread Starter terryau

    (@terryau)

    Hi and thanks,

    Semicolon entered , still the same.
    I certainly appreciate the help for a guy who is 75 and still learning.
    Terry

    https://www.terrycallaghan.com/ gives 404 not found error. What happened? I was just getting warmed up.

    Thread Starter terryau

    (@terryau)

    Hi . sorry.

    I lost my site due to wrong information given to me by my hosting provider and deleted my public. file. I am endeavoring to recover it.
    Terry

    Thread Starter terryau

    (@terryau)

    Hello all,

    I am back on line.
    Terry

    The last custom css didn’t work. Here is some more to try. It replaces what you have already in the custom css plugin.

    .singular .entry-header {width:100%}
    .singular .entry-content {width:100%}
    .entry-content table[style]{height:auto !important}

    Thread Starter terryau

    (@terryau)

    Thanks lorro,

    However , did not work.

    Terry

    It looks like you have full stops after .entry-header and .entry-content, and you have used curly brackets instead of square brackets for [style]. Best to copy and paste to make sure it is exact. CSS breaks easily.

    Thread Starter terryau

    (@terryau)

    Hi again. I corrected the errors but still the same. Maybe it is not possible?

    It looks the same only because the page is being cached so we are seeing an old copy. Press control-F5 to fully reload the page and you should see a difference. The table is over to the left, but not wide enough, so a slight change then it should be there:

    .singular .entry-header {width:100%}
    .singular .entry-content {width:100%}
    .entry-content table[style]{height:auto !important; width:auto !important}

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Centre a table on a page’ is closed to new replies.