O
O
olya_0972018-03-25 01:49:43
css
olya_097, 2018-03-25 01:49:43

Is it worth it to write html,body like this (if so, why)?

html,body{
  min-width:1122px;
  min-height:1750px;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KazeZlat, 2018-03-25
@KazeZlat

In this case, only will be enough body, because. htmlcontains it and will have its dimensions.
If you are talking about the minimum size, then it depends on what you want to achieve.

A
A person from Kazakhstan, 2018-03-25
@LenovoId

For example, if you look at the page through Opera, then he does not see background-image: url (); if you specify it to body , here is an example in which the background for the body tag is set and the background for the html is also commented out, you can check it and uncomment it and see in Opera : https://codepen.io/topicstarter/pen/aYyMem?editors =1100
This does not work well for background parallax in mobile devices - background duplication occurs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question