L
L
leirons2021-06-22 15:04:06
css
leirons, 2021-06-22 15:04:06

How to fix width and height?

I'm learning layout, I've already watched enough videos, I started layout layout.

We have a block with a width of 1600 and a height of 1200, when I set such parameters, they do not occupy the entire screen of the laptop, and in general they do not look right, I mean not like on the template, there can be a lot of white indent on the right, etc. .d. How can I limit my page to a certain width and height at once?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WapSter, 2021-06-22
@wapster92

https://habr.com/ru/post/463923/
https://developer.mozilla.org/ru/docs/Web/CSS/calc()
https://html5book.ru/edinicy-izmereniya-vh-vw -vmin...

R
rewenx, 2021-06-23
@rewenx

cut height 100% and width 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question