Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printing Page Help - CSS/DIV

Posted on 2011-03-18
3
Medium Priority
?
254 Views
Last Modified: 2012-05-11
Hi - I have a page I would like to print but currently when printing the whole page is blank.

I have a div called WharehouseMap that has uses a background image to display a map.  Within that div is another div called  WWA that has a background color of red.  I would like both the map and the WWA div with the red background to showup on the printout.

How can I do this?
CSS
---------------------------------------------

div#WarehouseMap
{
    position: relative;
    background-image: url('Warehouse_Floor_Plan.jpg');
    background-repeat: no-repeat;
    height: 600px;
    width: 681px;
}

div#WWA
{
    position: absolute;
    height: 48px;
    width: 17px;
    left: 116px;
    top: 495px;
    background-color: #FF0000;  /*  RED  */
}


ASPX PAGE
---------------------------------------------

<div id="WarehouseMap">
    <div id="WWA" runat="server"></div>
</div>

Open in new window

0
Comment
Question by:cdemott33
3 Comments
 
LVL 5

Accepted Solution

by:
rucky544 earned 2000 total points
ID: 35166542
There is normally a setting in the browser that tells it to print backgrounds, this will need to be ticked for the back grounds to show on a print out.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35166552
In the page itself, in the link for the CSS, do you specify a media property?
0
 

Author Closing Comment

by:cdemott33
ID: 35190254
This worked.  Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question