The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

border on table-cell

  • # January 25, 2013 at 10:59 am

    why not working border on table-cell?

    # January 25, 2013 at 11:20 am

    You shouldn’t put DIVs with a property of display: table-cell; in a TR as a replacement for TDs.

    Semantically, a TR should include TDs or THs as direct children.

    # January 25, 2013 at 11:42 am

    Can you write an example with children?

    # January 25, 2013 at 11:50 am

    This reply has been reported for inappropriate content.


    Appropriate table structure:

    Header 1 Header 2
    Cell 1 Cell 2

    What @Senff is saying is that you can’t intermittently switch between div’s with display: table-cell and <td>‘s and <th>‘s inside of a table element

    Either commit to a CSS table, or an HTML table, not both

    # January 25, 2013 at 12:40 pm

    Oke. Thanks then :). I tried to search another attempt

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed