Monday, October 3, 2016

AtoZ CSS Screencast: The CSS Line-Height Property

[special]This screencast is a part of our AtoZ CSS Series. You can find other entries to the series here.[/special]

Transcript

The CSS line-height property acts in a similar way to leading in print design.

It allows us to control the spacing between lines in paragraphs, headings and other text elements.

Line-height can also be used as a base to create consistent vertical rhythm and spacing throughout an entire project.

In this episode, we’ll look at

  • the difference between line-height and leading
  • using line-height for vertical alignment and
  • using the value of line-height to set up site wide default spacing.

Line Height vs. Leading

Leading is a typesetting term which describes the distance between the baselines in the text. The term comes from the days of hand-typesetting when strips of lead were used to space out the block of type. When talking about leading, the space is always added below the line.

line-height is a CSS proptery that controls the height of a line where the spacing is equal above and below the text.

If I have a paragraph with 1em or 16px font-size, and a line-height of 24px, there will be 4px of space added above the text and 4px of space added below; the height of the line will be

4 + 16 + 4 = 24px. 

This is the major difference between line-height and leading: in CSS, the text is vertically centered within the line and in print, the space is added beneath the line.

Continue reading %AtoZ CSS Screencast: The CSS Line-Height Property%


by Guy Routledge via SitePoint

Building Your Startup With PHP: Choosing and Configuring Production Hosting

Contentstack

Contentstack

Clean launching soon page with a neat intro demo video promoting a content marketing tool called 'Contentstack'. Would have loved to see the diagonal line design (used in the header) reused in footer but overall a clear, spacious layout.

by Rob Hope via One Page Love

26 Tips for Better Facebook Page Engagement

dc-better-facebook-page-engagement-600

Have you noticed a drop in your Facebook engagement? Wondering how you can better engage with your fans? Making small changes to what and how you post can help your Facebook updates generate clicks, likes, and comments. In this article, you’ll discover 26 tips for boosting Facebook engagement. #1: Pose a Question One of the [...]

This post 26 Tips for Better Facebook Page Engagement first appeared on .
- Your Guide to the Social Media Jungle


by Derek Cromwell via

Northlandscapes

Northlandscapes – Photography by Jan Erik Waider

Long scrolling One Pager showcasing the photography of explorer Jan Erik Waider. Interesting 1320px fixed width on bigger screens, would love to see this much wider but definitely a method to save development time. Thanks for such great build notes Jan!

by Rob Hope via One Page Love

5 Ways to Generate Leads From Snapchat

ap-generate-snapchat-leads-600

Do you need more leads? Are you using Snapchat? As great as Snapchat is for engaging with people, it also has the potential to deliver viable leads. In this article, you’ll discover five ways to generate leads with Snapchat. #1: Prompt Your Followers to Join Your Email List Snapchat should be part of your overall content [...]

This post 5 Ways to Generate Leads From Snapchat first appeared on .
- Your Guide to the Social Media Jungle


by Andrew Pickering via

Dess

Dess is french based dots and typographic artist.
by via Awwwards - Sites of the day