CSS Chapter 4 Test Notes

 

1.        A parent element is also called a(n) containing box.

2.        CSS does not let you specify font for all block-level elements.

3.        Margins is the furthest outside.

4.        If you use a percentage value for margin, border, and padding, the percentage is based on the width of the box.

5.        You can use margins to enhance the legibility of text, create indented elements, and add white space around images.

6.        In the example P {margin 1em 2em 3em;} the left margin will be 2em.

7.        To override the default browser margin, you should set a negative value.

8.        Padding can be specified by using either length or a percentage value.

9.        The groove keyword sets a 3-dimensional border that appears to be embossed into the page.

10.     If you specify a border style that is not supported , the border will default to solid.

11.     The border-width property does not let you state the width of the border with a percentage.

12.     The border-color value can be a hexadecimal value, an RGB value or one of the 16 predefined color names.

13.     To ensure that your widths will be portable across different screen resolutions, use either percentages, or relative measurement values.

14.     Float is not supported by IE 4.X and above.

15.     The CSS visual formatting model describes how element content boxes should be displayed by the browser.

16.     The style rule that changes the default display type for an <h2> element from “block” to “inline” is h2 {display:inline;}.

17.     The CSS  box model  lets you control spacing around the element content.

18.     The margin, border, and padding properties let you state two types of measurement values – either a(n) length – or a percentage.

19.     The margin property is a(n) shorthand  property that lets you set all four individual margins with one property.

20.     In the example  P {margin 1em 2em;} the left margin will be  2em.

21.     The single line rule style P {padding: 1em 2em;}  sets the paragraphs top and bottom padding to 1em and the left and right padding to 2 em.

22.     The border-style is the most important border property because it must be stated to make a border appear.

23.     The style rule P {border-right-style: ridge;} singles out the right border and applies the ridge style.

24.     The width  property is a special box property that is used to create floating text boxes or positioned elements.

25.     By default, the value of width is set to  auto.

26.     Float  is most commonly used for <img> elements, allowing alignment of an image to the left or right of text.

27.     The advantage of using the float property, along with the width and height properties, to float a text box is that no html tables are used to create the design; rather a simple CSS rule is all that is necessary.

28.     You will use the clear property when you are using the  float  property.

29.     The special box properties let you create floating images or text boxes.