I have a nasty problem with positioning elements:| So I have a children that need to have full screen width and not the with of relative parent.
body{
padding: 10px;
}
.container{
position:relative;
width: 400px;
border: 1px solid red;
padding: 15px;
}
.panel{
position:relative;
width:200px;
margin: 0 auto;
height:40px;
}
.panel-body{
position: absolute;
width:100%;
}
<div class="container">
<div class="panel panel-warning">
<div class="panel-body">
A Basic Panel
</div>
</div>
</div>
so the problem is how to bring the panel-body
in front of all other elements and setting the width 100% but 100% from screen not from parent relative. The html structure cannot be modified.