html – Font size is not changing on social media links.

I’ve added social media links to my website, but nothing happens when I try to change the font, which is annoying.

I’m not sure why the font is not changing.

HTML code:

 <!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>

<!-- Add font awesome icons -->
<a href="#" class="fa fa-facebook"></a>


</body>
</html> 

CSS code:

.fa {
  padding: 20px;
  font-size: 30px;
  width: 30px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
  background: #3B5998;
  color: white;
}

I’m trying to make the font size about 60, but nothing happens.

Why is this happening?

Check it out here: https://jsfiddle.net/2hoxu46j/

Changing the font doesn’t do anything.

Please help me

Write a Comment

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