Here is my html/css containers structure:
.page {
  height: 100%;
  width: 100%;
}
.rowcontainer {
  padding: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}
.container {
  padding: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}<div class="pagecontainer">
  <div class="container">
    <h1>Line at Top</h1>
    <div class="rowcontainer">
      <div class="container">
        THIS IS THE LEFT TEXT </div>
      <div class="container">
        THIS IT THE RIGHT TEXT THAT OVERFLOWS THE WIDTH AND SHOW THE HORIZONTAL SCROLLBAR, THAT IS NOT DESIRED
      </div>
    </div>
    <h1>Line at Bottom</h1>
  </div>
</div>Because of the paddings, both vertical and horizontall scrollbars appears.
How can I avoid these scrollbars, forcing the inner div to fit in the available width and height?
 
     
    