How to adjust font size?





0/5 (0 vote)
In this post you will see how can we change the font size on the fly. Style.css.bodyContent14{FONT-SIZE: 13px; LINE-HEIGHT: 14px}
In this post you will see how can we change the font size on the fly.
Style.css
.bodyContent14
{
FONT-SIZE: 13px; LINE-HEIGHT: 14px
}.bodyContent16
{
FONT-SIZE: 15px; LINE-HEIGHT: 16px
}
Page.aspx
function doZoom(size)
{
var o = document.getElementById(”bodyContent”).className = ”bodyContent” + size;
}
The text inside the Div will change and adjust Font size 16 to 14.