“For example, how is the gasket inside the border, but how is the margin calculated?”
Learn this: http://www.w3.org/TR/css3-box/#margins
"Is it on the border of the frame or in relation to the screen?"
Calculation of fields does not depend on the border and screen. The browser calculates the value for the field separately, and then decides how it will be applied (displayed).
"If we give both left and right margins, what has a higher priority?"
The algorithm is listed here: http://www.w3.org/TR/css3-box/#blockwidth
Could you give a concrete example?
"If there is a width, as well as left / right fields, how does the actual rendering happen, for example, the width of the window done first, then the filling, or what is it?"
rendering is almost instantaneous, so the final result is calculated, not the order in which the browser displays the properties of the element.
"What's the difference if the float attribute is added to this square with the mark?"
Read here: http://www.w3.org/TR/css3-box/#floating
The used field values are equal to the calculated values, except that the used values of any fields calculated as "auto" are 0.
source share