It appears that the font size has already been specified for the icons within the font-awesome.css
file. When adding a style tag to the HTML code, it can override these pre-existing classes. One way to ensure your desired font size is by including !important
after defining the font-size property in the CSS. For instance:
.fa-graduation-cap {
margin-top: 38px;
color: #E46A6B;
font-size: 50px !important;
}
In agreement with @developernator's suggestion, you could also utilize the predefined classes available. Nonetheless, it is commonly observed that the ideal font size often falls somewhere between the sizes offered by these classes.