• Resolved minhtan86a

    (@minhtan86a)


    body {
    	/* background: #fff; */
    	background: #333a4d;
    	overflow: hidden;
    	height: 100%;
    	/* color: #000; */
    	color:#8ec5d4;
    	margin: 0cm;
    	font-family: 'Open Sans', sans-serif;
    	font-size: 9pt;
    	line-height: 100%; /* fixes inherit dompdf bug */
    }

    background color can’t apply all page. it still has white background.
    can anyone help me please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    you have to use background-color instead. This works:

    
    body { background-color: #333a4d; }
    

    Note that this does not color the margins, so if you would like the entire page to be colored you have to set all @page margins to 0 and play with padding instead (not a quick fix I’m afraid).

    Hope that helps!
    Ewout

    Thread Starter minhtan86a

    (@minhtan86a)

    Thanks Ewout. This issue is solved few days ago. I used @page and padding.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PDF has white background’ is closed to new replies.