[Resolved] Add vertical 1px line between two columns

Home Forums Support [Resolved] Add vertical 1px line between two columns

Home Forums Support Add vertical 1px line between two columns

  • This topic has 4 replies, 2 voices, and was last updated 9 years ago by Tom.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #94783
    Alex

    Hi, I am using grid columns plugin per your suggestion in another post.. I made two columns 50/50, but I want to add a vertical 1px line between the two to separate them. Would you know of a somewhat easy way to accomplish this?

    #94823
    Tom
    Lead Developer
    Lead Developer

    Your best bet would be to add a div inside the first column, like this:

    [column grid="2" span="1"]<div class="right-border">Your content in here</div>[/column]

    Then you can add this CSS and adjust the border color:

    @media (min-width: 769px) {
          .right-border {
                border-right: 1px solid #DDD;
          }
    }
    #94962
    Alex

    That would work, however, the border is not in between the two columns but a right border of the first, so it looks misaligned. Any way to push it further right?

    See http://www.activeito.com/blog/computer-services-2/

    #94978
    Alex
    #95102
    Tom
    Lead Developer
    Lead Developer

    My initial code should work if you add this:

    body .column-grid .column {
          margin-right: 0;
          padding-right: 5%;
    }
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.