McCauley
04-06-2006, 04:09 PM
I was wondering does anyone know if you can inherit from div to div? or how you could do it if you can? I can't get my image to change. I don't think I'm doing this right.
EX:
#pageHeader
{ background-image: url(home_header.jpg);
background-repeat: no-repeat;
position: absolute;
left: 190px;
height: 200px;
}
#pageHeader #pageHeaderParent
{ background-image: url(Par_Bnnr.jpg);
}
Here is some html essentially I'm wanting to swap out the background image. If you uncomment the #pageHeader and use #pageHeaderParent you should get the same thing but you don't get any of the styles.
<html>
<head>
<style type="text/css">
#pageHeader
{
border:1px solid;
background-image: url(home_header.jpg);
background-repeat: no-repeat;
position: absolute;
left: 190px;
height: 200px;
width: 575px;
top: 0px;
}
#pageHeader #pageHeaderParent
{
background-image: url(Par_Bnnr.jpg);
}
</style>
</head>
<body>
<div id="intro">
<div id="pageHeader">
<div id="loginHeader">
<p class="p1"><span>Registered Users:</span></p>
<p class="p2"><span>
<a href="http:" title="Login to Child Support's Secured Site">Login</a></span></p>
<p class="p3"><span>New Users: </span></p>
<p class="p4"><span><a href="http:" title="Registration for Parents">Parent Registration</a></span></p>
<p class="p4"><span><a href="http:" title="Registration for Employers">Employer Registration</a></span></p>
</div>
</div>
<!-- remove for test the border should still show
<div id="pageHeaderParent"> code..... </div> -->
</body>
</html>
thanks
EX:
#pageHeader
{ background-image: url(home_header.jpg);
background-repeat: no-repeat;
position: absolute;
left: 190px;
height: 200px;
}
#pageHeader #pageHeaderParent
{ background-image: url(Par_Bnnr.jpg);
}
Here is some html essentially I'm wanting to swap out the background image. If you uncomment the #pageHeader and use #pageHeaderParent you should get the same thing but you don't get any of the styles.
<html>
<head>
<style type="text/css">
#pageHeader
{
border:1px solid;
background-image: url(home_header.jpg);
background-repeat: no-repeat;
position: absolute;
left: 190px;
height: 200px;
width: 575px;
top: 0px;
}
#pageHeader #pageHeaderParent
{
background-image: url(Par_Bnnr.jpg);
}
</style>
</head>
<body>
<div id="intro">
<div id="pageHeader">
<div id="loginHeader">
<p class="p1"><span>Registered Users:</span></p>
<p class="p2"><span>
<a href="http:" title="Login to Child Support's Secured Site">Login</a></span></p>
<p class="p3"><span>New Users: </span></p>
<p class="p4"><span><a href="http:" title="Registration for Parents">Parent Registration</a></span></p>
<p class="p4"><span><a href="http:" title="Registration for Employers">Employer Registration</a></span></p>
</div>
</div>
<!-- remove for test the border should still show
<div id="pageHeaderParent"> code..... </div> -->
</body>
</html>
thanks