How can I make dots between links vertically centered with only CSS? It's possible but I can't figure out how to do it.
Expected:
HTML
<label><a href="#">Like</a></label> <label><a href="#">Comment</a></label> <label><a href="#">Share</a></label> <label><span>1 hour ago</span></label>
CSS
a{ vertical-align: middle; } label:not(:last-child):after{ content: " . "; }
Not working example: http://jsfiddle.net/4ZFMm/
Thanks!
Unicode includes ⠇ which is the Braille symbol for the letter "U". To use, just use the HTML entity ⠇ in your code.
There are many ways to create a vertical dotted line in CSS, but the most common and simplest method is to use the border-left property. To create a vertical dotted line, all you need to do is set the border-left property to have a dotted line.
Make the middle dot / median dot (·) on Windows : The technique : Keep the Alt key pressed (key just to the left of the Space bar), then you successively type the numbers 0 1 8 3 then you finally release the Alt key, which will bring up the middle dot / median dot at desired location.
Use ·
·
for a dot or •
•
for a thicker, bulleted list style dot.
For use in the content
attribute, you'll need to escape it:
middot:
content: " \B7 ";
bull:
content: " \2219 ";
Refrences:
Somehow these got screwed up on the live server, although they worked locally, here's what worked for me, maybe it'll help someone else:
.element:before { content: "\2022"; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With