This is a questions in basic CSS and I just dont seem to understand it. The answer is 290px. Thanks
Q1. Suppose the box-sizing of a node is border-box. The viewport is 1000 pixels wide. The margin is 50 pixels wide on both ends, the padding is 100 pixels wide on both ends, and the border is 5 pixels wide on both ends. The width of the element is set to 50vw. What is the width of the content area?
- 290px - correct ans
Q2. The font-size of the html element is 10px. The body has a font-size of 1.6rem. Inside the body, the h1 element has a font-size of 3rem. What is the font size of the h1 element in pixels?
- 30px - correct ans