Based in Omaha, NE, USA
Open prairie hills and the visitor building at Ashfall Fossil Beds in northeast Nebraska

How Do I Change the Font Size in HTML and CSS?

Limited-time savings

Huge Price Drop and Savings!

Great news for Omaha and Nebraska small businesses. Because we have cut our labor costs, every new website with up to 5 pages plus a contact page is now just $300, one time. You get a custom design built by real people you can call, not a template factory, and most sites are ready in 3 to 5 days. Your site is mobile-friendly, has a working contact form and search-ready page titles and descriptions, and comes with a free SSL certificate. Hosting starts at $129 a year for a non-CMS site or $149 a year for WordPress, with daily backups included. Our family team has been building websites in Omaha for over 20 years. Choose what you need in the shopping cart below, call us at 402-813-4034, or send a message with the contact form and we will get started right away.

Get my $300 websiteor call 402-813-4034

Three blocks of rising height in red, yellow and navy beside a slider, picturing small

Different font sizes help you organize your content and make key words stand out to your visitors. Font size is a basic tool of Omaha web design. You set it with the CSS font-size property, and you can use that property in two ways.

First, in CSS (cascading style sheets), write a rule for a class:

.my-big-font-paragraph {
  font-size: 28px;
}

Then add that class to the tag you want to change, for example <p class="my-big-font-paragraph">.

Second, you can write the style right on the tag. This is called inline CSS:

<div style="font-size: 28px;">Big Text!</div>

Use a class when you want the same size in many places, because you change the rule once. Keep your font sizes in one style sheet, and your Omaha web design stays the same from page to page. Use inline CSS for a quick change in one spot.

You can set the size with different units. Pixels (px) give an exact size. Percent (%) and em units size the text compared to the text around it, so 150% is one and a half times as large. For example, font-size: 2em; makes text twice as large as the text around it. Browsers show body text at 16 pixels unless you change it.

If you have any questions about font-size, or any other HTML questions, call our Omaha web design company at 402-813-4034, or fill out our contact form.

Photo of Tami Atwood, the author of this post
AboutTami Atwood
Tami is the co-owner, content editor, and billing expert at Websnoogie. She is passionate about community causes and has four kids. She likes cooking, animals, and the outdoors and is an avid book reader. You can reach her at tami@websnoogie.com.

Get started with Websnoogie

A smiling couple at a sunlit office desk reviewing a colorful website on a large monitor

A family company in Omaha

Rod, Tami, and their team have built websites, content, and provided SEO services (internet marketing) for over 20 years. You call us, you talk to us. Most new websites are ready in 3 to 5 days, and our hosting runs at 99.999% uptime.

  • Best of Omaha B2B winner, 2021 to 2025
  • BBB accredited with an A+ rating
  • Small businesses, nonprofits and professionals

Sign up now

Due today$449

Secure checkout through PayPal

More info on our products

Contact us now!

Prefer to talk? Call 402-813-4034 or email staff@websnoogie.com. We are open every day, 7 am to 10 pm.