Paul Philippov

How to link to your Patreon page without using JavaScript

HTML

<a href="https://www.patreon.com/properrussian" class="patreon">Become a Patron!</a>

CSS

a.patreon {
    background: #ff424d;
    border: solid 1px #ff424d;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 3px #888888;
    color: #ffffff !important;
    display: block;
    font-weight: 400;
    font-size: 1rem;
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    text-decoration: none !important;
    width: 14rem;
}
a.patreon::before {
    border-left: solid 4px #ffffff;
    color: #ffffff !important;
    content: "⬤";
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.5rem 0.5rem 0.1rem;
}

Live Preview

Check out https://properrussian.com/.

Published on March 23, 2021 (6 months ago)

Article tags: css, html, patreon

Comments (0)