Hugh
0
Q:

text size in CSS

.class {
	font-size: 12px;
}
18
<body>      
         <h1 style="color:red;font-size:40px;">Heading</h1>      
         <p style="color:blue;font-size:18px;">This is demo text</p>    
      </body>
2
p {
	font-size: 150% /*px, cm, in, etc.*/; 
}
5
font-size: 2em;
5
#selector{
    font-size:20px;
}
4
.class {
	text-align: center;
}
19

div {
  height: 
200px;
  width: 50%;
  background-color: powderblue;
} 
3
// to scale font size in relation to its parent element
style="font-size: 2vw;"
2

New to Communities?

Join the community