B
B
BaluSerhii2019-10-01 20:37:26
css
BaluSerhii, 2019-10-01 20:37:26

Size mismatch between photoshop and browser?

Good evening.
I downloaded the layout of the site, I decided to practice layout. In Photoshop, margin: 100px is set for the element, I write the same value in CSS, but if in Photoshop this margin occupies 10% of the page, then in the browser it is 15%, and it’s impossible to fit everything you need on the entire visible page (height: 100vh) (I use photoshop values).
I know that it's all about resolution, but what do layout designers do in such situations? Specify all values ​​in %?
I will be grateful for the answer.
PS I'm typing on a 15.6 inch laptop.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
origami1024, 2019-10-01
@BaluSerhii

Your question is that you have a layout of 1920x1080, and a monitor of 1366x768, as I understand it?
P.S. In the browser console, use window.innerWidth to find out exactly the current size of the viewport, taking into account the zoom.
P.S.S. The pixelPerfect extension for chrome with zoom is friendly ok too

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question