Creating CSS code... Write the CSS code necessary to recreate the following appe
ID: 3910303 • Letter: C
Question
Creating CSS code...
Write the CSS code necessary to recreate the following appearance on-screen. You are not allowed to modify the HTML.
<div>
<div class="id">A A A A</div>
<div>
<span>B B
B B</span>
<span id="id">C C C C</span>
<span class="class">D D D D</span>
</div>
<div class="class">
<span>E E E E</span>
<div class="id">F F<br />F F</div>
<div id="class">G G<br />G G</div>
<div id="H">H H H H</div>
</div>
</div>
Instruction:
• Text uses Comic Sans MS font at the default size.
• All borders shown are 2px thick and black in color.
• The elements “A” and “F” have yellow background.
• The element “D” has italic text.
• The element “H” is exactly one third (1/3) of the page width, in the page center; the “H H H H” text appears on the right edge of the element.
Explanation / Answer
<div>
<div class="id"Comic Sans MS", Times, sans serif" >A A A A</div>
<div>
<span>B B
B B</span>
<span id="id">C C C C</span>
<span class="class">D D D D</span>
</div>
<div class="class">
<span>E E E E</span>
<div class="id">F F<br />F F</div>
<div id="class">G G<br />G G</div>
<div id="H">H H H H</div>
</div>
</div>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.