.container
  .hiddenX overflow-x:hidden
    .absoluteBox position:absolute
  .clipX overflow-x:clip
    .absoluteBox position:absolute
View Compiled
body {
  background: #888;  
}

.container {
  max-width: 150px;
  margin: auto;
  padding: 50px 0;
  background: #fff;
}

.hiddenX {
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  width: 100%;
  height: 70px;
  background: skyblue;
}

.clipX {
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  margin-top: 70px;
  width: 100%;
  height: 70px;
  background: skyblue;
}

.absoluteBox {
  position: absolute;
  top: -20px;
  width: 200px;
  height: 20px;
  background: orange;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.