PrepAway - Latest Free Exam Questions & Answers

You are building a web page for a newspaper publisher.

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?

A.

<

divid=-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-

>


Leave a Reply