Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

div background color in print page doesn't work

Tags:

People also ask

Why is my printer not printing the background color?

First on the File menu, click Options > on the Display menu, click to select the Print background colors and images check box under Printing Options > and then click OK. Hope above suggestion helps you and good luck! Was this reply helpful?

Why is my div background color not showing?

This is usually because the element has a background image set and the image is blocking the color from showing through. In order to fix this, you will need to set the background image to be transparent so that the background color can show through.

Why background image is not working in div?

You need to make sure that it is showing up first. You may have an error in your code where you do not have the same amount of opening div tags as you do closing div tags, thus it won't actually display your centerBar2 div. Are you sure your image is in the right directory, properly named, etc.?


I want use a div that has a background-color, but if I print the page it appears in white .

When I create a table using <tr bgcolor="#333333"> it also does not work.

How I can create a print page using css and html ?

My code :

<table border="0px" cellspacing="1" cellpadding="0" bgcolor="#777777" width="650px">    <tr bgcolor="#999999">        <td align=right colspan=2><span style="font:bold 14px 'b nazanin';">Text</span></td>    </tr> </table>