nerdexam
Microsoft

98-375 · Question #110

You have a Hypertext Markup Language (HTML) page with an unordered list. You want browsers to render each element side-by-side, use a fixed width, and fit as many elements on each line as possible…

The correct answer is B. inline-block. You should use the inline-block setting. This setting will cause an element to appear horizontally adjacent to other elements that fit on the same line. If the element does not fit on a line already occupied, the element will instead be rendered at the start of a new line. The…

Understanding CSS3

Question

You have a Hypertext Markup Language (HTML) page with an unordered list. You want browsers to render each element side-by-side, use a fixed width, and fit as many elements on each line as possible. To which value should you set the display Cascading Style Sheet (CSS) property?

Options

  • Ablock
  • Binline-block
  • Cinline
  • Dlist-item

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    72% (28)
  • C
    10% (4)
  • D
    15% (6)

Explanation

You should use the inline-block setting. This setting will cause an element to appear horizontally adjacent to other elements that fit on the same line. If the element does not fit on a line already occupied, the element will instead be rendered at the start of a new line. The inline-block setting also allows the element to retain some block-level behavior. A typical inline-level element could be fragmented by the browser into multiple inline boxes. When the display CSS property is set to inline-block, the contents of the element remain grouped as a single box. Unlike typical inline- level elements, you can set explicit height and width on this box. You should not use the block setting. This setting will cause the element to be preceded and succeeded by a line break. The box of the element itself will take all of the available width. The end result is that each list item will be rendered on a separate line. You should not use the inline setting. This setting will cause the element to be broken into one or more boxes. Each box will be only as tall as needed, and will take either the remaining width on the current line or the exact width required for the content, whichever is lesser. Additional boxes will be rendered on subsequent lines. Because it is unknown at design time how many boxes will be required and exactly where they will be rendered, it is not possible to set the height and width You should not use the list-item setting. This setting will cause the element to be rendered like a block-level element, with the addition of a bullet point preceding the content. This is the default setting for a list item element. Exam Name: HTML5 Application Development Fundamentals Version: 20.031 VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.

Topics

#display property#inline-block#CSS layout#list styling

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice