Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

77
Views
react app height and width is bigger than content

My app was working fine and suddenly I'm able to scroll to the right further than the content, as well as scrolling down past the content.

My App.js:

function App() {
  return (
    <div className='app'>
      <Header />
      <Main />
    </div>
  );
}

My index.js

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>
);

My index.scss:

body {
  margin: 0;
  font-family: "Inconsolata", monospace;
  background-color: $dark-gray;
  height: 100%;
  line-height: 125%;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

My App.scss is empty.

Anyways, I have no clue why I can suddenly scroll further down than the content and further to the right. Any help would be appreciated greatly.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!