Podcast
Questions and Answers
What does the CSS width property control?
What does the CSS width property control?
- The width of block elements and the img element (correct)
- The height of block elements
- The width of inline elements
- The width of the entire page
When is the width property ignored?
When is the width property ignored?
- For inline elements only (correct)
- For the entire page
- For block elements only
- For block and inline elements
What happens if a width property value is not specified for a block element?
What happens if a width property value is not specified for a block element?
- It is given a width equal to the entire page width (correct)
- It is rendered with a default width of 100%
- It does not render on the page
- It is rendered with a default width of 50%
Which elements can the CSS width property be applied to?
Which elements can the CSS width property be applied to?
What happens if the element's default size would exceed the minimum or maximum?
What happens if the element's default size would exceed the minimum or maximum?
For which elements are the properties related to width and height ignored?
For which elements are the properties related to width and height ignored?
What effect does giving an h2 a height of 3em have on its box in the given example?
What effect does giving an h2 a height of 3em have on its box in the given example?
How can a block element be centered on a page using margins?
How can a block element be centered on a page using margins?
What does the CSS width property specify?
What does the CSS width property specify?
What does the CSS height property specify?
What does the CSS height property specify?
Which CSS property is used to specify the minimum size of an element?
Which CSS property is used to specify the minimum size of an element?
What is the default width of a block element according to the text?
What is the default width of a block element according to the text?