WordPress.org

Forums

Table Spacing and Padding not working... (8 posts)

  1. jabbamonkey
    Member
    Posted 3 years ago #

    I am having trouble with TABLE PADDING and SPACING. For some reason, the table padding and spacing aren't registering...

    http://216.172.188.228/~mfse/about-us/store/
    (see the product images, and the descriptions - that's the table)

    I checked the style sheet, and there doesn't seem to be any padding set for tables. Can someone help and tell me how to fix this?

    I also searched this forum, but can't find an answer.
    I've tried adding something in my stylesheet to change the cell styles...
    td { padding: 4px 0px 4px 10px; }
    but that didn't work.

    I also tried to not use cellpadding="10" and use style="padding:10px;" for the table, but that didn't work.

    Also, I want to use TABLES as my admins wont know much about div tags and html. So, DIV tags aren't an option.

    Also, note, I tried adding horizontal space to the right of the image, to see if that is a temporary solution, but that didn't work either ...

    Any ideas?

    D.

  2. jabbamonkey
    Member
    Posted 3 years ago #

    Is this just a fundamental problem with WordPress? Is there no solution for this?

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    No - it's a CSS issue. Your table css is being over-written by the CSS within the page itself. Try using Firefox with the Firebug add-on for this kind of work.

  4. govpatel
    Member
    Posted 3 years ago #

    You will need to change in store css file and looks like plugin is adding the css directly and not using file so check the store plugin if you can change css from the plugin

  5. jabbamonkey
    Member
    Posted 3 years ago #

    esmi,
    I have used firefox ... the table styles aren't hard coded ... and I checked the main style sheet ... but that doesn't seem to have any issues.

    govpatel,
    Store plugin? I don't understand what you mean. There is no store plugin. I have plugins for breadcrumbs, calendar, contact form, captcha, tinyMCE and a backup plugin. No Store plugin though.

  6. govpatel
    Member
    Posted 3 years ago #

    I looked at your store page source code and I see that css is added directly in page rather then using file I used firebug and found that your text css is here

    http://216.172.188.228/~mfse/about-us/store/

    .calendar-table table, tbody, tr, td {
    margin: 0 !important;
    padding: 10px !important;
    }

  7. jabbamonkey
    Member
    Posted 3 years ago #

    Ok... that's the calendar plugin ... I was able to change the styles in the plugin. I changed them to....

    .calendar-table table,.calendar-table tbody, .calendar-table tr, .calendar-table td {
    margin:0 !important;
    padding:0 !important;
    }

    This should cause the regular tables to be left alone, right? When I did this, nothing changed.

  8. govpatel
    Member
    Posted 3 years ago #

    if you changed added 10px in padding then you should get padding in td as is you do not have any

Topic Closed

This topic has been closed to new replies.

About this Topic