HTML One way of centering a div element with class name "inner" inside of another larger div element with class name "outer" with having inner being 200 X 200 pixels and outer being 400 X 400 pixels would be: (Assume that they are nested in the html file page and NOT decoupled and self-contained) Both div elements have borders a. .inner{ margin-top:200px; margin-left:200px; } b. div { margin-top:100px; margin-left:100px; } c. .inner{ margin-top:100px; margin-left:100px; } d. .inner{ margin-left: 100px; } Given the following html, what would be the correct css to make the ul element red text I'm a paragraph; what color am I? I'm another paragraph, what color am I ? I'm a list item;what color am I? a. div.central.ul li {color:red;} b. div.central{color:red;} li,ul {color:yellow;} c. p.central ul{color:red;} d. div.central ul {color:red;} div.central{ {color:yellow;}
HTML
- One way of centering a div element with class name "inner" inside of another larger div element with class name "outer" with having inner being 200 X 200 pixels and outer being 400 X 400 pixels would be: (Assume that they are nested in the html file page and NOT decoupled and self-contained)
Both div elements have borders
a. |
.inner{ margin-top:200px;
margin-left:200px; }
|
|
b. |
div { margin-top:100px;
margin-left:100px; }
|
|
c. |
.inner{ margin-top:100px;
margin-left:100px; }
|
|
d. |
.inner{ margin-left: 100px; } |
-
Given the following html, what would be the correct css to make the ul element red text
<html>
<head>
<link rel= "
stylesheet" type="text/css" href="mystyle3300.css">
</head>
<body>
<p class="central">
I'm a paragraph; what color am I?
</p>
<div class = "central">
<p>
I'm another paragraph, what color am I ?
</p>
<ul>
<li> I'm a list item;what color am I?</ li>
</ ul>
</div>
</body>
</html>
a. div.central.ul li {color:red;}
b. div.central{color:red;}
li,ul {color:yellow;}
c. p.central ul{color:red;}
d. div.central ul {color:red;}
div.central{ {color:yellow;}

Step by step
Solved in 2 steps









