HTML Academy
Logo: Icon Font
Text Formatting12/26
Back to the list of tasks
  • 1. Unicode Characters
  • 2. The text-shadow Property
  • 3. Horizontal Text Shadow Offset
  • 4. Vertical Text Shadow Offset
  • 5. Text Shadow Feathering
  • 6. The Text Shadow Color
  • 7. Embedded Effect for Text
  • 8. Decorative Retro Shadow
  • 9. Challenge: Psychedelic Shadows
  • 10. Logo: Custom Font
  • 11. Logo: Icon Font
  • 12. Logo: Size Alignment
  • 13. Applying Decorative Styling to the Line, Step 1
  • 14. Applying Decorative Styling to the Line, Step 2
  • 15. The text-indent Property
  • 16. The: first-letter Pseudo Element
  • 17. : first-line Pseudo Element
  • 18. Column Markup: The column-count Property
  • 19. Column Markup: The column-width Property
  • 20. Column Markup: The column-gap Property
  • 21. Text Direction
  • 22. Text Direction and Tables
  • 23. Overflowing Text
  • 24. Spacing Between Words
  • 25. Challenge: Why So Serious?
  • 26. Challenge: Play With Fonts
Applying Decorative Styling to the Line, Step 1
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Logo: Size Alignment

In order to complete the logo design, all we need to do is to set the required sizes and indents for the characters.

Let’s make the “WARMPHOTO” caption denser by decreasing the inter-character spacing.

We can do this using the letter-spacing property. By default, the browser sets the character spacing automatically according to a specific value for each font. The default value is letter-spacing: 0.

If we increase or decrease the value for letter-spacing, we will change the spacing by the specified amount. The value is specified inpx, em, pt, or other CSS length units.

Comments

  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <title>Logo: Size Alignment</title> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <a href="#"><span>A</span>Warmphoto</a> <h1>Warm Lamp Photos</h1> </body> </html>
CSS
@font-face { font-family: "Montserrat Alternates"; src: url("fonts/MontserratAlternates.woff") format("woff"); } @font-face { font-family: "Glyphter"; src: url("fonts/Glyphter.woff") format("woff"); } body { background: url("night.jpg") no-repeat 50% 0; font-size: 12px; font-family: "Arial", sans-serif; } a { display: block; margin: 12px; color: #ecf0f1; text-align: center; text-decoration: none; text-transform: uppercase; font-size: 55px; font-family: "Montserrat Alternates", sans-serif; } a span { font-family: "Glyphter"; } h1 { margin: 12px; color: #ecf0f1; text-align: center; font-size: 24px; }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Assign character spacing of -3px to the link.
    2. Set a vertical alignment of middle for the span inside the link,
    3. and then set the right margin to 18px and specify a font size of 78px.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.