PrepAway - Latest Free Exam Questions & Answers

Which line of code should you use?

You are building a web page for a newspaper publisher.
You have the following requirements:
The web page should split the content into columns that are at least 100 pixels wide.
The number of columns displayed must be set by the browser.
You need to implement the correct CSS properties.
Which line of code should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<div id=”outer” style=”width: 100px; column-fill: balance;”>…</div>

B.
<div id=”outer” style=”width: 100px; column-gap: 10px;”>…</div>

C.
<div id=”outer” style=”column-width: 100px; “>. . .</div>

D.
<div id=”outer” style=”width: 100px; columns: 100px 3″>…</div>

Explanation:
column-width
The width attribute specifies the width of a <col> element.
Normally, a <col> element takes up the space it needs to display the content. The width attribute is used to set
a predefined width of a <col> element.
Syntax:
<col width=”pixels|%|relative_length”>

2 Comments on “Which line of code should you use?


Leave a Reply