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. 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 494 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.
  • P Offline
    P Offline
    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 Offline
      mariusjopenM Offline
      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 Offline
        P Offline
        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 Offline
          edgrbnzE Offline
          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
          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
          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