Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Vertical lines

Vertical lines

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maarschalk
    wrote on last edited by
    #1

    Hello,

    I want to insert vertical lines in my website to seperate projects. Something like this: https://www.cupofcouple.com/. Is it possible? For example by using HTML + CSS? I've been plaing around for some time, but can't find the perfect solution.

    Thanks!
    B.

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @maarschalk

      you can play around with this one:

      .col {
          border-left: 1px solid black;
          padding-left: 20px;
      }
      

      Or add a custom HTML element into the Gridder and give that a border.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maarschalk
        wrote on last edited by
        #3

        Thanks for the fast answer, Marius. I think I'm going for option 2, since it seems more easy to me and takes less knowledge of coding. Could you please give an example of the HTML element? Right now I'm using the one below. However I want to be able to adjust the height of the vertical line to the row-height (element-height) in the gridder. Is this possible?

        HTML:

        <div class="vertical-line"></div>

        CSS:

        .vertical-line {
        position:absolute;
        left:50%;
        Height: 100vw;
        border-left: 0.05vw solid #808080;
        }

        1 Reply Last reply
        0
        • mariusjopenM Offline
          mariusjopenM Offline
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Dear @maarschalk
          looking at your coce I recommend you to go for option number 1.
          That will be easier.

          I just tried to use the second option and it turned out it is not really working well.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maarschalk
            wrote on last edited by
            #5

            @mariusjopen said in Vertical lines:

            .col {
            border-left: 1px solid black;
            padding-left: 20px;
            }

            Hi Marius,

            Okay thanks :-) However I have one more question: when I add the code like this, a border appears at the left side of every project thumbnail, as intended of course. Still, I need the one on the outside left to disappear (see photo below)

            And one more thing: it seems like the borders are pushing the other content to one side. Could this be fixed as well?

            0_1533625621456_2018-08-07.jpg

            thanks a lot for your help :-)

            Best,
            Bart

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @maarschalk

              ah. This is a classic situation :-)

              Can you send me a link?

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • wardhW Offline
                wardhW Offline
                wardh
                wrote on last edited by
                #7

                I'm having a similar problem. What was the solution?

                1 Reply Last reply
                0
                • RichardR Offline
                  RichardR Offline
                  Richard
                  Global Moderator
                  wrote on last edited by Richard
                  #8

                  Dear @wardh

                  Likely the solution was just to specify the exact col to target with CSS so instead of all col (columns) targeted just the center. Or something like all first children of the parent row are not targeted (therefore all left-side elements are not targeted ) šŸŒ


                  Best wishes and a happy 2022
                  Richard
                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  I also code custom websites or custom Lay features.
                  šŸ’æ Email me here: šŸ’æ
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  A
                  alasdair17
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                  laytheme.com
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search