65.9K
CodeProject is changing. Read more.
Home

How to adjust font size?

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Oct 11, 2013

CPOL
viewsIcon

5748

downloadIcon

5

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.