Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3800

    Hey guys,

    I have to define an extra style for a specific tabel. I had build a static site which looks like as your portfolio items.

    I did this because of making it easier for me to use WPML. I was unable and to lazy for hardcoding. That works

    fine for me so far. So for whatever reason I used tables, but I want to get rid of the border-lines only of this tabel.

    Here is the link to my site: http://digitalartcore.de/gtp/blog/

    For now I changed in style1.css between line 480-485

    td {

    border-right: 1px solid #e1e1e1; / to none;

    border-bottom: 1px solid #e1e1e1; / to none;

    background: #fff;

    color: #777;

    }

    Of course this has an effect of all tables in the theme, but I just want to define it for one specific tabel. How can I make it simply?

    Is it possible just to define over stylesheet or do I need to define a new class and how to do? I also want to adjust the position a

    little bit.I tried it in style.css between line 1757-1762

    .entry table {

    width: 100%; / add position:absolute; top:, left: etc.

    padding: 0;

    margin: 0;

    }

    Has an effect of all tables (see above)!

    Thanks for your support in advanced!

    Kind Regards

    Frank

    #43755

    Hey,

    the easiest solution would be to wrap the table into a div (i.e. like:

    <div class="my-table">

    <table>
    ...
    ...

    ...
    </table>
    </div>

    Then duplicate the table code and append .my-table like:

    .my-table td {
    border-right: 1px solid #e1e1e1; / to none;
    border-bottom: 1px solid #e1e1e1; / to none;
    background: #fff;
    color: #777;
    }

    .my-table table {
    width: 100%; / add position:absolute; top:, left: etc.
    padding: 0;
    margin: 0;
    }

    #43756

    Hey Dude,

    thanks for your quick response! This fixed it! Perfect!

    Frank

    #43757

    Glad that I could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘need help with table styling’ is closed to new replies.