Division Tag - Quiz #13

Question #1
A

Padding, margins and borders subtract from the width and height of a division.

B

Padding, margins and borders have no effect on the dimensionsof a division.

C

Padding, margins and borders add to the width and height of a division.

Choose the correct statement.


Question #2
A

<div id="container">
<div id="left"></div>
<div id="right"></div>
</div>

B

<div id="left"></div>
<div id="right"></div>

C

<div id="container"></div>
<div id="left"></div>
<div id="right"></div>

Select the best code for setting up a 2 column web page with divisions.


Question #3
A
#container {
text-align: center;
width: 900px;
height: 500px
}

B
#container {
margin-left: auto; 
margin-right: auto; 
width: 900px;
height: 500px
}

C
#container {
margin-left: 50%; 
margin-right: 50%; 
width: 900px;
height: 500px
}

Which CSS would center a division named container on a web page?


Question #4
A
div: scroll;
B
overflow: scroll;
C
scrollbar: overflow;

Which CSS would add scroll bars to a division?


Question #5

The align attribute of the division tag is still valid. True False