Contact Number

+91 908 908 6161

Email Address

info@darlic.com

Sign up
Login

Learn with Darlic®
  • HTML
  • CSS
  • JQuery
  • Javascript
  • PHP
  • SQL
  • Tutorials
  • Courses

Font Size

Font Size

Posted on October 21, 2015 by

Font Size

The font-size property sets the size of the text.

Always use the proper HTML tags, like <h1> – <h6> for headings and <p> for
paragraphs.

Set Font Size With Pixels

Setting the text size with pixels gives you full control over the text size:

Example

Set Font Size With Em

1em is equal to the current font size. The default text size in browsers is
16px. So, the default size of 1em is 16px.

Example

Use a Combination of Percent and Em

The solution that works in all browsers, is to set a default font-size in
percent for the <body> element:

Example

Post navigation

Previous
Next

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Empty Widget Area

About Darlic®

Darlic® is innovative platform to create websites, web applications, progressive web applications, mobile applications without a pain. Darlic® is registered Trademark of OXO IT SOLUTIONS PRIVATE LIMITED.

Links

  • Home
  • About
  • Features
  • Templates
  • Career
  • Blog
  • Contact

Resources

  • Documentation
  • Resources
  • Tools
  • Bits
  • Learn
  • Ask

Email Address

info@darlic.com

Contact Number

+91 908 908 6161

Social Links

Copyright Right
  • Privacy Policy
  • Terms and Condition