songyy
songyy

Reputation: 4563

Unknown white space appear on the right side of web page

Here's the look:

[Page with issue]

I did the page in ReactJS, but I've made a copy of the page here.

To better show the white space, here's the screenshot: Image Show White Space

several interesting observations:

Any idea on: 1) why the white space appeared? 2) how could I solve the issue?

PS: just in case if you missed the part I put link to CodePen, Here it is again.

Update 2: I have this input box which I'm placing outside the page:

<input type="file" class="attache-upload-button" data-reactid=".0.0.1.3.1.1.0.0.1">

Corresponding style:

.review-add-form form .uploader .attache-upload-area .attache-upload-button {
  position: fixed;
  top: -1000px;
}

Upvotes: 2

Views: 6764

Answers (3)

luniacllama
luniacllama

Reputation: 1

Faced this issue multiple times and in my case, it's generally a div or an element that is crossing the width of the screen thus stretching out, maybe try and analyze with chrome dev tools and inspect the layout, try and get rid of few divs and see if it changes anything, or maybe reduce the width of absolutely sized elements, etc.

Upvotes: 0

Bala kumar
Bala kumar

Reputation: 1

Add this to the CSS:

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

Upvotes: 0

Mattia Nocerino
Mattia Nocerino

Reputation: 1513

I inspected the DOM with chrome inspector, and i saw that the <svg class="bar"> is exceeding in width. I tried to set a overflow: hidden to the containing element, .progress-bar-circle and the whitespace disappeared

Upvotes: 2

Related Questions