Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2006, 01:05 PM
Authorized User
 
Join Date: Oct 2004
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Background colour/image printing

Hello all,

     In my project there is an option to print web pages. It contains background images and colours. By default the browsers should not print background images and colours(I don't want to change the browser settings). I found some method to override this problem by putting Div and img tag. So text will be placed on top of image. The problem is the text are dynamic. This method is affecting the design a lot. Any suggestions?


<style>
#outer
{
position: absolute; top: 50px; left: 50px; height: 100px;
     width: 100px; border: thin solid red;
}
</style>

<DIV id="outer" align="center">
<div style="height:48.4em"><img src="gray.gif" height="100%"/></div>
<div style="position:relative;top:-48.4em;;margin-left:2px;margin-top:2px">
<table id="tbl" border="1">
  <tr>
    <td>
     contents
     contents
     contents
     contents
     contents

     </td>
   </tr>
</table>
</div>
</DIV>

Thanks in advance
GHari


GHari





Similar Threads
Thread Thread Starter Forum Replies Last Post
Table row background colour changing meetravig Java GUI 0 September 21st, 2007 05:06 AM
How to custom-define the default background colour ms_priya Java GUI 1 January 10th, 2006 05:28 PM
Fireworks Question: Change image colour crmpicco Dreamweaver (all versions) 0 October 5th, 2005 06:41 AM
Setting backGround Colour of a text pazzuzu C++ Programming 0 January 21st, 2005 11:15 AM
How to find RGB %'s of a solid colour image rhofing General .NET 0 June 11th, 2004 01:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.