Solved

landscape printing of page with writing mode tb-rl, tried works for text in the div but not for HTML <table> How to get it worked for <table> Urgent!!!

Posted on 2003-10-30
6
1,796 Views
Last Modified: 2012-06-21
Hi,

 I tried the solution for the same question asked here before I tried that
div.page class and writing mode:tb-rl

When I have a normal text in the <div> It works absolutely fine

Here is the sample code I am trying

<html>
<head>
<style type="text/css" media="print">
div.page  {
writing-mode: tb-rl;
height: 80%;
margin: 10% 0%;
zoom:0.65;
}

div.pgtable {
margin-right: 80pt;
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
}
</style>
</head>
<body >

<div class ="page" >
sdfsfffffffffffffffffffff
gggggggggggggggggggggggg
vvvvvvvvvvvvvvvvvvvvvvvvvvv
<table  class="pgtable" border="1" cellspacing="2" cellpadding="2" bordercolor="Purple" >
<tr >
    <td class="pgtable">First Cell in first row</td>
    <td class="pgtable">Second Cell</td>
    <td class="pgtable">Third Cell in first row</td>
</tr>
<tr >
    <td class="pgtable">First Cell in row 2</td>
    <td class="pgtable">Second Cell</td>
    <td class="pgtable">Third Cell in row 2</td>
</tr>
</table>

</div>



</body>
</html>

It works absolutely fone for text but no effect on table


Can anybody please help me with this problem as I am more concerned with <table> as my data is generated dynamically in HTML <table> only

PLease help as soon as possible

Thanks in avance

Regards
ssdanu
0
Comment
Question by:ssdanu
6 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 300 total points
Comment Utility
Change the stylesheet to this:

table.pgtable {
margin-right: 80pt;
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
}

div.pgtable doesn't exist ...
0
 
LVL 15

Expert Comment

by:VincentPuglia
Comment Utility
<table style='filter= progid:DXImageTransform.Microsoft.BasicImage(rotation=1);'  class="pgtable" border="1" cellspacing="2" cellpadding="2" bordercolor="Purple" >

it doesn't seem to like being within style tags.
check at msdn.microsoft.com
0
 
LVL 6

Expert Comment

by:ren_b
Comment Utility
change the style media from "print" to either "screen" or "all" and its fine.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

743 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

19 Experts available now in Live!

Get 1:1 Help Now