To display an element as a block-level use: display: block-level; display: block; display: inline; display: display-block; What are three types of layouts? inline, fluid, static fixed, floating, static fixed, fluid, elastic inline, block, scrolling Provide a style rule to set the maximum width of an element to 960 pixels. maximum-width: 960px; maxw: 960px; width: 960px; max-width: 960px; Provide a style rule to horizontally center a block element within its container with a top/bottom margin of 20 pixels. margin: 20px center; margin: center 20px; margin: auto 20px; margin: 20px auto;

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter4: Graphic Design With Css: Creating A Graphic Design For A Genealogy website
Section: Chapter Questions
Problem 12CP3
icon
Related questions
Question
  1. To display an element as a block-level use:

    1. display: block-level;

    2. display: block;

    3. display: inline;

    4. display: display-block;

  2. What are three types of layouts?

    1. inline, fluid, static

    2. fixed, floating, static

    3. fixed, fluid, elastic

    4. inline, block, scrolling

  3. Provide a style rule to set the maximum width of an element to 960 pixels.

    1. maximum-width: 960px;

    2. maxw: 960px;

    3. width: 960px;

    4. max-width: 960px;

  4. Provide a style rule to horizontally center a block element within its container with a top/bottom margin of 20 pixels.

    1. margin: 20px center;

    2. margin: center 20px;

    3. margin: auto 20px;

    4. margin: 20px auto;

  5. Provide a style rule to place an object on the right margin of its container.

    1. margin: right;

    2. text-align: right;

    3. float: right;

    4. padding: right;

  6. Provide a style rule to display an object only when all floating elements have cleared.

    1. clear: float;

    2. clear: floats;

    3. clear: both;

    4. clear: all;

  7. Your layout has four floated elements in a row but unfortunately the last element has wrapped to a new line. What is the source of the layout mistake?

    1. The widths of the floated elements exceed the available width of their container.

    2. You cannot float more than one object within a row.

    3. You have to clear the first three floating object to make room for the fourth.

    4. You have to clear the fourth floating object to make room for the first three.

  8. Provide a style rule to change the width property for the header element so that it measures the total width of the header content, padding, and border spaces.

    1. box-sizing: border-box;

    2. box-sizing: content-box;

    3. box-sizing: all;

    4. box-sizing: complete;

  9. What causes container collapse?

    1. The width of the child elements exceeds the width of the container.

    2. The width of the container element is fixed at 0 pixels.

    3. The height of the container element is fixed at 0 pixels.

    4. All child elements are floating so that they are free of the container, leaving the container with no content.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage