Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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">

onclick="set_font_size('increase')

Javascript

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
CSS
.style43
        {
          font-size: small;
            
        }


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



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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900