I am currently trying to display three horizontal dots on my webpage. I have created a demonstration on jsfiddle.
span {
position: relative;
background-color: blue;
border-radius: 5px;
font-size: 0;
margin-left: 20px;
padding: 5px;
}
span:before {
position: absolute;
left: -10px;
content: '';
background-color: green;
border-radius: 5px;
font-size: 0;
margin-left: 35px;
padding: 5px;
}
span:after {
position: absolute;
right: 0;
content: '';
background-color: grey;
border-radius: 5px;
font-size: 0;
margin-left: 35px;
padding: 5px;
}
I'm not sure if this method is the most effective way to achieve the desired result. Additionally, I would like these dots to be aligned horizontally but for some reason they are not lining up properly. Can anyone provide suggestions on how to rectify this issue?