CSS - Allow an div to stick out of its parent

Your explanation is not very clear, but here is a demo of a right-aligned parent div with a child div that sticks out. I hope that is what you're looking for :)

#parent {
  width: 200px;
  height: 200px;
  background-color: #FF0000;
  float: right;
  position: relative;
}
#child {
  width: 300px;
  height: 100px;
  background-color: #00FF00;
  position: absolute;
  right: 0;
}
<div id="parent">
  Parent
  <div id="child">
    Child
  </div>
</div>


overflow: visible; on parent should do the trick - be careful if you have and dimensions set mind!!!

Tags:

Html

Css