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. Dotted line css

Dotted line css

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 70 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
    michell
    wrote on last edited by
    #1

    Hello!
    I added a styling for the lines in css and it works for most browsers. But in safari and on the smatphone it doesn't work. Can you tell me what i have to change so it works everywhere?

    Thats the code i used:
    .lay-hr {
    height: 2px;
    background-color: #ff0000;
    background:
    radial-gradient(circle closest-side, red 100%, #0000)
    0/5px 100%; /* 20px = 20px + 20px */
    }

    And this is the website:
    https://amoreamore.online/home/

    Thanks!

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

      probably the css is just not understood by all browsers

      u could use https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
      a border that is dotted instead of your css

      like

      .lay-hr {
      height: 1px;
      background-color: transparent;
      border-bottom: 5px dotted red;
      }
      

      maybe closest-side is sth that some browsers understand, others dont, idk!

      you could try to simplify your radial-gradient css statement and try out if it works

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

        Perfect! Thank you!

        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
        M
        MATTOFIRE
        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