Reduce text line height on mobile

3 replies · opened Aug 25, 2017

BbaroninkjetAug 25, 2017

How would I reduce the text line height on mobile devices? It is way too large and requires more scrolling than it should. All text is affected.

Thank you!

SSemicolon WebSTAFFAug 28, 2017

Hello,

The Default body Line Height is 1.5. Use this CSS:

body { line-height: 1.5; }

And the Default Content Area Line Height is 1.8. Use this CSS:

#content p { line-height: 1.8; }

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

BbaroninkjetAug 28, 2017

I know what line-height is. My question was about reducing line-height on mobile devices, not everywhere. :-(

SSemicolon WebSTAFFAug 28, 2017

Hello,

We were mentioning the Values of Line Height defined by default in Canvas. Additionally, you never mentioned which Element's Line Height were you planning to decrease. Please Consider using the following CSS Codes:

@media (max-width: 767px) {
	body { line-height: 1.5; }
	#content p { line-height: 1.8; }
}

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard