Solved

Printing Page Help - CSS/DIV

Posted on 2011-03-18
3
220 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

832 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