CSS change font code example

Example 1: css change text

IDENTIFIER {
	visibility: hidden;
	position: relative;
}
IDENTIFIER::after {
	visibility: visible;
	position: absolute;
	top: 0;
	left: 0;
	content: "NEW_CONTENT";
}

Example 2: h2 custom font family html css

body {
font-family: 'Roboto', sans-serif;
}

Example 3: css change text size

p {
	font-size: 150% /*px, cm, in, etc.*/; 
}

Example 4: css font-size

#selector{
    font-size:20px;
}

Example 5: css how to change font colr

html {
	color: #f3f3f3;
  	font-family: cursive;
  	font-size: 25px;
}

Tags:

Css Example