You are here: table outside printable border -- caused by font size in CSS??? « HTML « IT news, forums, messages
table outside printable border -- caused by font size in CSS???

Posted by Edward Scott on 11/17/23 11:29

hi,

I have a page with a table in it, whose style is defined by a CSS style
sheet. the table is set to take up 100% of the page when printed. if I
don't specify a font size, or specify a font size small enough, this
works fine. once the font size is 9 pt or larger, however, the table
extends beyond the printable border on the right hand side of the page.

I have no idea why this is. my style sheet for the table is included
below, if anyone can offer any assistance it would be greatly
appreciated.

<STYLE TYPE="text/css" media="print">
<!--
..myTable
{
font-size:9pt;
align:left;
border:0;
border-spacing:0;
width:100%;
}
..myTable TH
{
text-align:right;
vertical-align:top;
padding:10;
background-color:#CCCCCC;
}
..myTable TD
{
text-align:justify;
padding:10;
}
-->
</STYLE>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация