By default, browsers do not print backgrounds to save ink.
Your element only has a background (no border, no content...) so it is totally not showing on the print preview (but still takes space).
If you really want to print them (for example if you are saving the page as a PDF), you must check the "Print backgrounds" option in the print dialog.