Full width in limited width parents

We might need a full width elements inside a container. here’s the css

.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

Source

Leave a Reply

Your email address will not be published. Required fields are marked *