MCQs > IT & Programming > CSS 3 > What will happen if the following style declaration is used in the given HTML code? div.container { width:38em; border:1em solid black; } div.split { box-sizing:border-box; width:50%; border:1em silver ridge; float:left; } HTML code:
Box 1.
Box 2.

CSS 3 MCQs

What will happen if the following style declaration is used in the given HTML code?
<style type="text/css">
   div.container
   {
       width:38em;
       border:1em solid black;
   }
   div.split
   {
       box-sizing:border-box;
       width:50%;
       border:1em silver ridge;
       float:left;
   }

HTML code:

<div class="container">
<div class="split">Box 1.</div>
<div class="split">Box 2.</div>
</div>


Answer

Correct Answer: Box 1 will be on the left hand side and Box 2 will be on the right hand side horizontally.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

CSS 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

CSS 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it