It's because the <div class="body">
has a height of 0
. It only contains absolute positioned elements, which don't take up any space, so its basically empty.
Some suggestions:
Learn to use the browser's debugger (DOM Inspector). It will show you information about the elements such as their size and applied styles.
Avoid absolute positioning. It basically breaks how CSS works which makes it difficult for beginners.
EDIT: One more thing: You have a opening <strong>
tag without a closing </strong>
. Keep in mind you can't put block elements (such as <p>
) inside inline elements such as <strong>
.