WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] How to change table background color? (5 posts)

  1. thomasgericke
    Member
    Posted 1 year ago #

    I want to change the table's background color. It always is white and/or some not-so-white ("whitesmoke"?). I've already tried to add some CSS to the theme's custom CSS:

    .table {
    background-color: transparent;
    }

    or

    table {
    background-color: transparent;
    }

    Doesn't work, still white. I also played around with background: #000000; or even other things. Nothing's happening at all.

    Even the following does not work:

    .table-striped tbody > tr:nth-child(odd) > td,
    .table-striped tbody > tr:nth-child(odd) > th {
    background-color: transparent;
    }
    .table-hover tbody tr:hover > td,
    .table-hover tbody tr:hover > th {
    background-color: transparent;
    }

    How to change table's background to either transparent or a defined color?

  2. ElectricFeet
    Member
    Posted 1 year ago #

    Is this for a real (data-holding) table or simply a table for layout purposes? If the latter, take a look at this: http://wordpress.org/support/topic/changing-the-background-color-in-a-table

  3. thomasgericke
    Member
    Posted 1 year ago #

    That's interesting. Last night, I spent like 10 minutes to look for such a support thread (by walking through all thread pages and using Safari's search function). I (or Safari) couldn't find any thread. Strange.

    It's (of course) a table for layout purposes: text left, images right. But it's combined with another reasong: a pricelist, which has descriptions left-aligned and price right-aligned in the same row.

    That grid thing sounds interesting. Never heard about it before. I'm gonna give it a try this afternoon.

    Thanks a lot for your answer so far!

  4. thomasgericke
    Member
    Posted 1 year ago #

    Works!

    Grid has some formatting problems just like tables have (margin, …) but it works for me now. What I miss most: rowspans.

    However: thank you! :)

  5. ElectricFeet
    Member
    Posted 1 year ago #

    What I miss most: rowspans.

    Should find what you need here: http://getbootstrap.com/2.3.2/scaffolding.html#fluidGridSystem

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.