Solved

Printing Page Help - CSS/DIV

Posted on 2011-03-18
3
210 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 33

Expert Comment

by:paulmacd
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now