I have a relative parent div and a fixed child div. i would like the relative parent to get the width from the child div.
<div id="parent">
<div id="child">
</div>
</div>
Css Code;
#parent {
position: relative;
top: 40px;
left: 20px;
background-color: #F1A323;
padding: 20px;
box-shadow: 10px 10px 5px #0F0F0F;
border:2px solid;
border-radius:25px;
-webkit-border-radius: 25px;
behavior: url(pie/PIE.htc);
}
#child{
position: fixed;
background-color: #FDF0DA;
height: 100px;
}