Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Horizontal lines w different strokes on one page

Horizontal lines w different strokes on one page

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.0k Views 1 Watching
  • 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.
  • P
    P
    Paul_Moxie
    wrote on last edited by
    #1

    Howdy!

    Is there any chance to customise horizontal line strokes using css?
    So that you have different strokes for every line on one page..

    This is my page rn:

    0_1533131173472_Bildschirmfoto 2018-08-01 um 15.45.43.png

    Greets, Paul

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

      Dear @Paul_Moxie

      yes. You can right click on a line and give it an ID or a CLASS.

      0_1533196262243_Bildschirmfoto 2018-08-02 um 09.50.18.png

      Then you can use the CUSTOM CSS to change it.

      Hope I could help!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • P
        P
        Paul_Moxie
        wrote on last edited by
        #3

        Hi @mariusjopen,
        Many thanks for your quick reply!

        So i tried this css bit now:

        .line{
        stroke-width: 1px
        }

        But it won't work... du you have any solutions for me?

        Best, Paul

        edgrbnzE 1 Reply Last reply
        0
        • P Paul_Moxie

          Hi @mariusjopen,
          Many thanks for your quick reply!

          So i tried this css bit now:

          .line{
          stroke-width: 1px
          }

          But it won't work... du you have any solutions for me?

          Best, Paul

          edgrbnzE
          edgrbnzE
          edgrbnz
          wrote on last edited by edgrbnz
          #4

          @paul_moxie to make your code valid you need a semicolon after 1px in your css:

          .line {
          stroke-width: 1px;
          }
          

          On the other hand I'm not quite sure if stroke-width will work at all for an hr-element. I’d try something along these lines:

          .my-hr .lay-hr {
          height: 1px;
          }
          

          Then add the class my-hr (call it whatever you fancy) to the hr-elements in the gridder. Unfortunately I can’t really explain why the lay-hr class needs to be there – But it needs to be – It’s something about that CSS-parent-child-thing I never really wrapped my head around.

          Hope that helps!

          ✦ ✦ ✦

          1 Reply Last reply
          2

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Online Users
          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