Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 22nd, 2005, 11:08 AM
bigdavemmu bigdavemmu is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 29 bigdavemmu User rank is Private First Class (20 - 50 Reputation Level)bigdavemmu User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 18 m 38 sec
Reputation Power: 0
CSS Printing - Argh can't set the margins!

What a pain this is!

To be honest I am new to using CSS for printing and I want to use CSS to print my pages; dilemma!

I have successfully used CSS to eliminate elements and add a small underline, set font, link colours etc... But no matter what I do I can't seem to get the thing to print everything off within my margins. I've been messing with this for ages and can't get the hang of it.

Can you please help...

Here's the CSS:
Code:
div#content { 
   page: tablecontents; 
   border-width: 0; 
   border-bottom-width: thin; 
   border-style: groove; 
   } 
    
@ page: tablecontents { 
   size: 8in 11in; 
   } 


.printheader_small { 
   color: #000; 
   font-size: 8px; 
   font-family: Verdana, Arial, serif; 
   font-style: italic; 
   } 

.printheader { 
   color: #000; 
   font-size: 12px; 
   font-family: Verdana, Arial, serif; 
   font-style: italic; 
   font-weight: bold ; 
   } 
    
.no_print { 
   display: none; 
   } 
    
body { 
   background: white; 
   } 

    
td { font-family: Garamond, "Times New Roman", Times, serif; 
   color: black; 
   }    
    
a:link { 
   text-decoration: none; 
   color: Green; 
   font:Verdana; 
   } 
    
a:visited {text-decoration: none; 
   color: Green; 
   font:Verdana; 
   } 
    
a:hover { 
   text-decoration: none; 
   color: Green; 
   font:Verdana; 
   } 


Do you need the HTML code?? The page can be found at www.candoslimming.com. I am using tables for the site. Does this affect it?

ANY help whatsoever would be brilliant.

Thanks people!

Reply With Quote
  #2  
Old September 22nd, 2005, 01:38 PM
grdnwesl's Avatar
grdnwesl grdnwesl is offline
Fuzzy but Ferocious User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: The Restaurant at the end of the Universe
Posts: 222 grdnwesl User rank is Sergeant (500 - 2000 Reputation Level)grdnwesl User rank is Sergeant (500 - 2000 Reputation Level)grdnwesl User rank is Sergeant (500 - 2000 Reputation Level)grdnwesl User rank is Sergeant (500 - 2000 Reputation Level)grdnwesl User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 18 h 54 m 35 sec
Reputation Power: 13
Just a guess, but...

In your page you specify a width for "body table"

<!--BODY TABLE-->
<table width="808" border="0" cellspacing="2" cellpadding="0">

<tr>

Try removing the inline width of 808. it may be overriding your style sheet

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > CSS Printing - Argh can't set the margins!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT