| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
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 |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > CSS Printing - Argh can't set the margins! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|