Fonting it up with Zombies

6 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€65.45
List Price:  €93.51
You save:  €28.05
£55.31
List Price:  £79.03
You save:  £23.71
CA$95.87
List Price:  CA$136.97
You save:  CA$41.09
A$105.23
List Price:  A$150.33
You save:  A$45.10
S$94.85
List Price:  S$135.50
You save:  S$40.65
HK$546.28
List Price:  HK$780.43
You save:  HK$234.15
CHF 62.53
List Price:  CHF 89.34
You save:  CHF 26.80
NOK kr738.84
List Price:  NOK kr1,055.54
You save:  NOK kr316.69
DKK kr488.13
List Price:  DKK kr697.37
You save:  DKK kr209.23
NZ$114.35
List Price:  NZ$163.36
You save:  NZ$49.01
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,206.42
List Price:  ৳11,723.96
You save:  ৳3,517.54
₹5,848.74
List Price:  ₹8,355.70
You save:  ₹2,506.96
RM329.86
List Price:  RM471.25
You save:  RM141.39
₦104,145.12
List Price:  ₦148,785.12
You save:  ₦44,640
₨19,451.01
List Price:  ₨27,788.35
You save:  ₨8,337.33
฿2,566.28
List Price:  ฿3,666.28
You save:  ฿1,099.99
₺2,297.77
List Price:  ₺3,282.67
You save:  ₺984.90
B$380.19
List Price:  B$543.15
You save:  B$162.96
R1,257.29
List Price:  R1,796.21
You save:  R538.91
Лв127.88
List Price:  Лв182.70
You save:  Лв54.81
₩97,243.40
List Price:  ₩138,925.10
You save:  ₩41,681.70
₪263.13
List Price:  ₪375.92
You save:  ₪112.78
₱4,117.61
List Price:  ₱5,882.56
You save:  ₱1,764.94
¥11,182.65
List Price:  ¥15,975.90
You save:  ¥4,793.25
MX$1,267.57
List Price:  MX$1,810.89
You save:  MX$543.32
QR254.73
List Price:  QR363.91
You save:  QR109.18
P943.11
List Price:  P1,347.37
You save:  P404.25
KSh9,044.72
List Price:  KSh12,921.58
You save:  KSh3,876.86
E£3,339.22
List Price:  E£4,770.52
You save:  E£1,431.30
ብር4,029.95
List Price:  ብር5,757.32
You save:  ብር1,727.37
Kz59,806.45
List Price:  Kz85,441.45
You save:  Kz25,635
CLP$65,858.49
List Price:  CLP$94,087.59
You save:  CLP$28,229.10
CN¥508.21
List Price:  CN¥726.05
You save:  CN¥217.83
RD$4,122.17
List Price:  RD$5,889.07
You save:  RD$1,766.89
DA9,412.67
List Price:  DA13,447.25
You save:  DA4,034.58
FJ$156.97
List Price:  FJ$224.25
You save:  FJ$67.28
Q541.95
List Price:  Q774.24
You save:  Q232.29
GY$14,603.51
List Price:  GY$20,863.05
You save:  GY$6,259.54
ISK kr9,756.60
List Price:  ISK kr13,938.60
You save:  ISK kr4,182
DH695.57
List Price:  DH993.71
You save:  DH298.14
L1,245.82
List Price:  L1,779.82
You save:  L534
ден4,023.76
List Price:  ден5,748.47
You save:  ден1,724.71
MOP$562.43
List Price:  MOP$803.51
You save:  MOP$241.07
N$1,257.72
List Price:  N$1,796.82
You save:  N$539.10
C$2,571.12
List Price:  C$3,673.19
You save:  C$1,102.06
रु9,331.52
List Price:  रु13,331.31
You save:  रु3,999.79
S/265.79
List Price:  S/379.71
You save:  S/113.92
K272.41
List Price:  K389.17
You save:  K116.76
SAR262.58
List Price:  SAR375.14
You save:  SAR112.55
ZK1,779.25
List Price:  ZK2,541.90
You save:  ZK762.64
L325.62
List Price:  L465.20
You save:  L139.57
Kč1,631.83
List Price:  Kč2,331.28
You save:  Kč699.45
Ft25,947.39
List Price:  Ft37,069.29
You save:  Ft11,121.90
SEK kr735.41
List Price:  SEK kr1,050.64
You save:  SEK kr315.22
ARS$63,379.44
List Price:  ARS$90,545.94
You save:  ARS$27,166.50
Bs482.57
List Price:  Bs689.42
You save:  Bs206.84
COP$291,390.14
List Price:  COP$416,289.47
You save:  COP$124,899.33
₡36,507.14
List Price:  ₡52,155.29
You save:  ₡15,648.15
L1,727.59
List Price:  L2,468.10
You save:  L740.50
₲525,730.21
List Price:  ₲751,075.35
You save:  ₲225,345.14
$U2,750.95
List Price:  $U3,930.09
You save:  $U1,179.14
zł283.09
List Price:  zł404.43
You save:  zł121.34
Already have an account? Log In

Transcript

Okay, let's talk about fonts. So you can choose any font you want for your web page. It'll look great on your computer. But if other people don't have it, it's gonna look like undead puke. So, also, you need to be careful that changing the font without a good reason will increase the heart. Not a good idea to do unless you know what you're doing or are changing it from something else to the desired font type that's used elsewhere.

Since fonts aren't available on all systems, you should typically choose several fonts that will look similar if one isn't available. So for instance, here I have a content class and the rule font family is choosing which font we want to use. The first one that will be available as Helvetica, or that we would hope would be available is Helvetica. If that's not available, then I'll go with pradana. And if that's not available, then you can also change the font size. You can use a couple different types of units, pixels, percentages.

EMS and even a couple more. I tend to prefer EMS because their relative unit, one m is equal to the default font size. Typically that's 16 pixels. So EMS are relative units, which means that the child tags will inherit their parents font size, and the parents font size becomes the child's new default font size. So their one M is based upon the parents font size. So for instance, if a parent spot size is set to two M, and the child has also said to him, if we assume 16 pixels as the base, then the parents font size will be 32 pixels, but the child's font size will be 64 pixels because it's building two times the default size from its parent.

The benefit here is that things get bigger and smaller proportionately. So if, for instance, a user decides to change their default font size from 16 pixels to 24 pixels, or even if they go down from 16 pixels to 10 pixels or something like that, then all of the font sizes are going to change accordingly. So if we went down to 10 pixels. For instance, the parents font size would then be 20 pixels, and the child's font size would then be 40 pixels. And they're still gonna stay proportionate to what was originally set. If you set them with specific pixel numbers, they wouldn't change.

And that's not really great for the user. Because sometimes, designers can make things very small, which can be hard to read. Here's an example of a change of font size. In this case, we are changing the font size to 1.25 n, so we're upping it a little bit to about 20 pixels soon. 16 pixels was the default. Here we have the pixel version, font size 20 pixels.

And you can also use percentages, font size 125% font weights, you're probably familiar with bold, you know a heavier weight than the normal font, but there's quite a few other weights that you can use. So fonts come in many sizes and thicknesses font weight property, allows you to change this you can go from 100 to 900 increments of 100 400 as normal 700 is bold, most fonts do not have all nine weights. I would say it's a rare, rare number of fonts that have all nine, most will have at least 407 hundred, but there may be, sometimes you'll have a light and some of those sorts of things. You're also able to use the keywords normal and bold to also set them without having to remember the 407 hundred thing. So with the zombie way, here we have content font weight bold. You can also set the font weight to normal, and the equivalent in numbers here we have font weight of 700, and then finally to four.

Alright, so styling, so font style is how you italicize or italicize content from CSS. So we just font style italic sets. The font style to Italic and normal sets it back to by default, as I'm sure you've seen links are underlined in blue. Sometimes you'll want to remove the underline or even add it back. So that is used text decoration. So text decoration of none will remove the underline text decoration, underline will add it back, you can also change the color of the font.

And like changing the font family. You also want to make sure that you use this wisely and choose colors that are pleasing to the eye and not the sickly yellow green that you're probably gonna see me choose here. There are a lot of ways to set color in in CSS, we can use keywords as we saw in the last chapter, like blue and green, peach puff etc. There's also a hexadecimal notation which looks something like this. I don't even know what color that is. Don't worry, you don't have to know.

But if you know that this is a color for the hashtag before it shows you that it's a color, then you can get whatever color you want in a graphics program, then copy that hexadecimal value into your HTML in order to change the color. While the key words are helpful. They don't have nearly as many colors as the hexadecimal numbers allow for and again, as I said, anything graphics program should be able to help you get the hexadecimal value that you can then just plug into. Here's an example of setting the color to green. Here's another example using the hexadecimal notation. Notice that the hashtag is there and is required for doing hexadecimal numbers.

Alright, let's take a look at some code. All right here I just have a little paragraph that I've added a whole bunch of different things to here we have the font family, zombie killer. Being a font that does not actually exist, it's not gonna find it. So since a railway does exist on my computer, it's going to show me this in railway. If railway did not exist, as it may not on your computer, it'll choose Helvetica and if Helvetica is not available, then it'll choose some Sans Serif fonts, probably Arial but it really depends on your computer and what you're doing here we have make it bold. So I made this little thing bold to just set the puppet bold skinny text here zombie.

If you do not have real way on your computer, you're not going to see the skinnier text. Because railway is a font that happens to have multiple versions or multiple weights. So I was able to then show this as the zombie weight. Next we have normal text. So the font weight of normal insanely large text is this little guy thing. changing it to six m, you can also change things to very small so in this case, I changed the word website to just six pixels.

Oh, actually, yes, I'm sorry. This ensures that we have railway so you should still see railway within your, on your computer, even if you don't have it, because of the way that I set this up. But you can also getting back to font style, so tallix so I set this whole thing to italic. And then in the middle here I have just this word zombie that I'm making boring so I'm changing the font style but normal and it is no longer italicized. Alright, that's it for this section. Let's head on to the next

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.