Quantcast
Channel: creativewebsite » HTML
Viewing all articles
Browse latest Browse all 9

Sup, Sub line-height fix with CSS

$
0
0

If I have a tag in your HTML pages, you will have noticed that they often distort the spacing between the lines in a paragraph. See the code sample below to fix such issue:

sub, sup { 
	font-size: 75%;
	line-height: 0; 
	position: relative; 
	vertical-align: baseline; 
}
sup { 
	top: -0.5em; 
}
sub { 
	bottom: -0.25em; 
}


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images