D
D
Dmitry Vyatkin2015-12-15 21:48:57
Bootstrap
Dmitry Vyatkin, 2015-12-15 21:48:57

Why is the actual size and the size specified in the styles of the .container class different in bootstrap?

31cb362d87d14490ae50b62f93ac5dbd.jpg
Why is the width size in styles 1170px, but 1047 is displayed on top

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Salavat Sitdikov, 2015-12-15
@zona7o

Because of the parameterbox-sizing: border-box;
box-sizing: content-box | border-box | padding box | inherit
Based on CSS standards, with the width and height properties specifying the width and height of the content, and do not include padding, margin, or border values.
The width and height properties include margins and borders, but not margins. This model is used by the Internet Explorer browser in incompatible mode.
The width and height properties include margins, but not margins or borders.
Inherits the value of the parent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question