justinmind-logo
 
Upvote 1

100% width makes width 3p more than resolution max

Solved Alexandre Colin 6 years ago

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 !

Replies (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

Leave a Comment
 
Attach a file