I'm currently working on aligning some div tags to serve as contact links on my website. My goal is for them to be positioned on the right-hand side and aligned in a single line.
Here's how they look at the moment:
https://i.sstatic.net/rQ1uG.png
Here's the preferred alignment:
https://i.sstatic.net/LbR46.png
Here's the code snippet:
#book-me {
position: fixed;
right: 0;
transform: translateY(-50%);
z-index: 99999;
top: 50%;
background: black;
color: white;
padding: 5px 10px;
}
#book-me a {
background: black;
color: white;
display: inline-block;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
font-family: sofia-pro;
writing-mode: vertical-rl;
}
@media screen and (max-width: 960px) {
#book-me {
bottom: 0;
top: initial;
transform: none;
}
#book-me a {
writing-mode: initial;
padding: 5px 10px;
}
}
<div id="book-me">
<a href="tel:############">Call</a>,
<a href="sms:############">Text</a> or
<a href="############">WhatsApp</a>
</div>