This is Sasha and I’d like to share with you another CSS training video so that way you can edit or modify your business website. In this video, what we’ll do is take a look at the font size tag or element so that way you can see how we can work with even inheritance as we go into coding. Let’s take a quick look.
Using percentages to modify the font size
In order to illustrate this example, what I’ve done is I’ve created a body element where the font size is 16, that means everything has a font size of 16 that basically has 16 pixels. There are a few ways to apply a font size or a font size to a certain area. What you could do is pixels which is what I’ve done here.
What I’m going to do is show with you exactly a nice way to go ahead and incorporate this through inheritance properties and normally what you do is define in the body what font size you want to use and in this case we use pixels. You could even use points which is another way to do it which is good for printing. Pixel is the typical standard that people use when it comes to websites.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body { font-family: arial; font-size: 16px; } p {font-size:120%;}Backstageincome : Learn to grow a business and evolve your life! Backstageincome.com
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

When it comes to websites, one of the ways that you can do is font size and if you want it to be, let’s say, 120% or 125% larger, let’s just do 120%, I could just do 120% right there even though the body is 16 pixels. What you can see is right there, it made it larger. Typically you may not want to do that for the paragraph tags. You may want to do the h2 tags, the heading tags, and you might say, “Okay.
Well, with the font size right there, I might want to do that with 170% right there, okay?” I’ll go ahead and do that and you can see it bump that 170% because what it’s doing here is it’s taking the value from the 16 pixels and it’s getting a 100% of that to get that final value.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body { font-family: arial; font-size: 16px; } h2{font-size:170%;} p {font-size:120%;}Backstageincome : Learn to grow a business and evolve your life! Backstageincome.com
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

If we did some calculations and we took, let’s say, 16 pixels and we multiply that times 1.7 because that’s 170% and what we get is 27.2 which is what that font size would be, okay? That’s how you calculate that.
Using EMs
The other approach to doing this and let’s just say I had a let’s go with the heading 3 tag, okay, which might be a smaller tag, right, because you have heading 2 then you have heading 3. With the heading 3 tag, the other way that you could do it is you could use EMs which is very similar to percentages.
I might say, “Okay, this one is 1.5 ems.” I’ll go ahead and save that and the way that these work is the same way. It’s basically 150%. It’s the same calculation we did. It’s 16 times 1.5 equals and in this case you get 24. If I wanted it to be exactly 170, I can go ahead and multiply it times 1.7 and you’ll see that these two right here are exactly the same size.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body { font-family: arial; font-size: 16px; } h2{font-size:170%;} h3 {font-size:1.7em;}Backstageincome : Learn to grow a business and evolve your life! Backstageincome.com
Backstageincome.com
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Inheritnce and font size
That’s how that really works when it comes to the font size. The great thing about this or the power behind this is you can see that since we’re taking this inheritance property from the body tag.
We’ve written out our custom body area and instead of – let’s just say we want to bump it one or tiny notch on the font size, I could just go ahead and type this into 18 and everywhere else it’s going to bump it up a little bit and the H2 and H3 will bump up just as smidge as well because it’s, you know, 170% of that original font size or the property that it’s taking the inheritance from. That’s an important point to remember.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body { font-family: arial; font-size: 18px; } h2 {font-size:170%;} h3 {font-size:1.4em;}Backstageincome : Learn to grow a business and evolve your life! Backstageincome.com
Backstageincome.com
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Using actual values to define font size
The other thing that you can do when it comes to font size is use actual value. I could say font size and, let’s just say, over here, you could see they have large, larger, there’s even extra-large, extra-small, extra-extra-large and extra-extra-small.
Let’s do extra-extra-small just to give you an idea of what that looks like and you can see right there it’s very tiny, you might not be able to see it but it’s right there when you do things that are smaller like that, you could also define things based on these values so just like you could with bold which we’ll get into shortly.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body { font-family: arial; font-size: 18px; } h2 {font-size:xx-small;} h3 {font-size:1.4em;}Backstageincome : Learn to grow a business and evolve your life! Backstageincome.com
Backstageincome.com
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch. Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Normally this is not the best approach because the way that you define things is normally pixels. It’s numeral value and you can shift it in certain increments whereas, you know, when you go extra-small, you know, when you go extra-small or you go just small and you can see it bumps it up a little bit but it’s not exactly as precise.
There is other ways to do it of course like this but it’s not necessarily recommended. The better approach is to use values like the pixels or the percentage or the EM and the EM is the same as the percentage really is just taking, you know, you can have a 140% or 1.4 em. If I did 4.4 em that would be 440% and you could see how much bigger that is. That’s ultimately how the font size element works.