Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Borders on table cells

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #243421
    Sean1943
    Participant

    http://codepen.io/jgx/pen/wiIGc

    I am designing a table with fixed headers based on the codepen above. It works fine until I add a border.
    Adding
    th, td {border:1px solid red;}
    causes the head to widen more than the body and I cannot figure out why this happens.
    Can anybody help me?
    Sean

    #243425
    Paulie_D
    Member

    Perhaps you can demo it because I’m not seeing any issues with adding borders to th or td

    #243426
    Sean1943
    Participant

    Perhaps I should have said that the difference in widths does not occur until you scroll down.

    I just edited it again on Codepen and the head and body are clearly different in width when a border is added.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.