Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Selected Reading
Articles by Nick K
1 articles
How to Apply Global Font to the Entire HTML Document?
Sometimes we want to set a base attribute to everything and allow more specific selectors to adjust it for certain elements as needed. There are also cases, especially when doing brief temporary testing, where we want a font to apply to all text no matter what. Syntax /* Universal selector approach */ * { font-family: font-name; } /* With !important for absolute priority */ * { font-family: font-name !important; } Method 1: Using Universal Selector We can use the CSS universal selector (*) to select ...
Read MoreShowing 1–1 of 1 articles
« Prev
1
Next »
Advertisements