In a md viewport, how wide is the div with class "col-md-4 col-lg-7"?

Prepare for the Web Development 201 Test. Utilize our flashcards and multiple choice questions with hints and explanations. Ensure you're ready for your web development exam!

In a medium (md) viewport, the div class "col-md-4 col-lg-7" follows the Bootstrap grid system, which is based on a total of 12 columns. The class "col-md-4" specifies that the div should take up 4 out of the 12 columns for medium-sized devices.

Thus, for a medium viewport, the width of the div is equivalent to 4 columns, or one-third of the available width. It's important to note that while "col-lg-7" indicates the width for larger (lg) viewports, this does not affect the div's width in a medium viewport context. Therefore, when the question specifically asks about the width in a medium viewport, the correct answer is 4 columns.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy