01 / 05
Polish how it looks
INPUT · Slides
Make the small button in a header
02 / 05
The HTML is very short
The contents are one link, and that is all. Every bit of decoration goes in the CSS.
The shorter the HTML, the easier it is to change the look later.
<a class="login" href="#">Log in</a>03 / 05
Change the weight of the text
font-weight makes text bold.
bold… heavynormal… ordinary (for when you want a heading lighter)
Small text reads better when it is made heavier.
.login { font-size: 14px; font-weight: bold;}04 / 05
Wrap it into a pressable shape
A border, some rounding and some space make it look pressable. With no fill it stays quieter than the main button, which is just right.
It is a link, so do not forget text-decoration: none; and display: inline-block;.
.login { display: inline-block; padding: 8px 16px; border: 1px solid #7b5ea7; border-radius: 4px; text-decoration: none;}05 / 05
Put it at the right edge and it is done
Last, float: right; to send it to the right of the header — the setting you learned last lesson.
The only new one is font-weight. The rest you build out of the tools you have. Have a go.