here I did a custom map marker pin with text inside of it.
I got a working example from this website link
I slightly tweak the code. But not able to align the text correctly.
Code:
body {
background: #e6e6e6;
}
.pin {
width: 30px;
height: 30px;
border-radius: 50% 50% 50% 0;
background: #00cae9;
transform: rotate(-45deg);
color: white;
display: flex;
justify-content: center;
align-items: center;
}
<div class='pin'>1</div>
Result:
Is there any way I can align the text correctly. Help me with your suggestions and feedback
