Guys I am having below CSS in the head tag of an aspx file which I want to use only for one particular page in the site. If I put this code in master page in .net then it will be applied to all site pages which I do not want. How do I make the below css work only for one particular page. That page is having the body id = “mainpage”


<style type="text/css">
@media screen
{
* html
{
overflow-y: hidden;
width:90%;
z-index:-1000;
}
* html body
{
height: 84%;
overflow:auto;
margin:0px;
z-index:-1001;
}
}
table#header
{
margin-top:-90px !important;
background-color:#FFF;
z-index:1000;
margin-left:0 !important;
}

.fixedelement
{
position:fixed !important;
_position:relative !important;
_top:0px !important;
_z-index:5000;
}
</style>

Html is –
<div class="fixedelement"></div>