Click here to Skip to main content
14,421,622 members
Rate this:
Please Sign up or sign in to vote.
Hello All,

I am having a master page on which i have a button and on clicking the button font size will increase through javascript function like

Master Page

<body id="sitebody1">



function set_font_size(fontType) {
if (fontType == "increase") {
if (fontSize < 100) {
fontSize = parseInt(fontSize) + 15;
} else {
fontSize = 75;
document.getElementById("sitebody1").style.fontSize = fontSize + "%";

It works fine with the controls exits on master page but it is not increasing size of content page's control because i am using page wise style like

Content Page
          font-size: small;

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="Main">

So i want to override the content page style property from master page's javascript function.
Please help!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100