Forums

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

Home Forums CSS [Solved] How can I set a border in alignment with other borders

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

    I have a theme with following code:
    http://sudrap.org/paste/text/392549

    When I add css to my html, the borders aren’t aligned correctly. My code is:

    table.alt tr th.rightAlignBorderLeft {
        text-align: right;
        border-left: solid 1px #e5e5e5;
    }

    I don’t want to set border-collapse to collapse, because changing my default theme code may mess up my pages. How can I fix this?

    Fiddle: http://jsfiddle.net/ru1923mf/2

    #185877
    Sedana
    Participant

    Try removing border-left: solid 1px #e5e5e5; and use border-right: solid 1px #e5e5e5; on the th elements instead

    #185880
    onurcan1977
    Participant

    Thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.