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,815 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 300 total points
ID: 9660088
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
ID: 9661487
<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
ID: 9728768
change the style media from "print" to either "screen" or "all" and its fine.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

730 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