I’ve set a specific width to the body div in my Master Page and I want to change that in a Child Page that belongs to the Master Page. Is this possible? I’ve been searching and I think what I need is javascript.
I haven’t used javascript before though, but here’s what I’ve tried:
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type="text/javascript">
{
document.getElementById("pagediv").style.width = "200px";
}
</script>
</asp:Content>
You don’t have to use JavaScript. You can also use CSS and have this in your content placeholder.