Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the CSS code necessary to recreate the following appearance on-screen, exa

ID: 3910090 • Letter: W

Question

Write the CSS code necessary to recreate the following appearance on-screen,

exactly as shown. You are not allowed to modify the HTML down below:

<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>

• 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

body{
font-family: "Comic Sans MS", "Comic Sans", cursive;
border-style: solid;
border-width: 2px;
}
#id, .id{
background-color: yellow;
}
#id{
text-align: center;
width: 35%
}

**Comment for any further queries.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote