Dotted line css
-
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!
-
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 csslike
.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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it