Ch6 Flashcards
For a two-column layout where the main content is fluid and the aside is fixed, you use CSS to
set the body width to a percent and don’t set the section width
Which of the following should you NOT do when using CSS3 properties to create text columns?
Make the columns wide enough to read easily.
Include the property prefixes required to display the columns in browsers that support this feature.
Correct Response
Justify the text in the columns.
Code the columns in an article element.
Which of the following techniques can you NOT use to create a two-column layout?
Code the first column before the second column and then float both columns to the left.
Code the columns in any order and then float the first column to the left and the second column to the right.
Correct Response
Code the columns in any order and then float both columns to the left.
Code the first column before the second column and then float the first column to the left.
When you use ____________________ positioning with CSS, the positioned element doesn’t move in the browser window, even when you scroll.
fixed
If you want to use a __________________ page layout, you set the width of the page to a percent.
fluid
When you use CSS to set the float property for an element, you should also set the ____________________ of the element.
width
When you set the float property for a block element to left, the elements that follow it will flow into the space
to the right of the floated element if there’s enough space
When you use ____________________ positioning with CSS, the other elements on the page are positioned as if the element wasn’t there.
absolute
When you set the position property for a block element to fixed, the element
is positioned relative to the browser window
To stop an element from flowing into the space on the side of a floated element, you can code the ____________________ property.
clear
For a three-column layout, you can
code the main content and asides in any sequence and then float the first aside and the main content to the left and the second aside to the right
When you set the position property for a block element to absolute, the browser
takes the element out of the flow of elements on the web page