100% width makes width 3p more than resolution max

Alexandre Colin shared this problem 8 months ago
Solved

Hello,

My resolution is 1900px.


I have a rectangle with a width of 100% but simulation brings me a horizontal scroll.

After investigation, the 100% width is equal to 1903 px (when i switch from % to px and vice versa).

The scroll bar is due to these 3 additionnal px.

Any idea ?

Thank you !

Comments (2)

photo
1

Dear Alexandre,


Has the rectangle a border? If that's the case the border is being added to the total percentage (100%).

Also, can you let me know which browser are you using? Can you try using a different browser?


Best,


Sonia Durán

photo
2

My mistake.

I had a confusion between the height of my prototype, the scroll bar and my screen resolution.

It's finally not a problem.


Thanks


Alex