www.webdeveloper.com
Results 1 to 3 of 3

Thread: Landscape print in FireFox 3.6

  1. #1
    Join Date
    Aug 2010
    Posts
    7

    Landscape print in FireFox 3.6

    Hi guys,

    I am trying make Landscape as the default page orientation in my application.

    We are using FireFox 3.6.

    I have tried this one;
    Code:
    <body style="size:landscape">
    But this is not working.....Still i am getting the print in Portrait.

    could somebody help me on this?

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Try adding this into your head section instead of using the body tag:

    Code:
    <style type="text/css" media="print"> 
    @ page {
    size:landscape
    }
    </style>
    54 68 65 42 65 61 72 4D 61 79

  3. #3
    Join Date
    Aug 2010
    Posts
    7
    thanks a lot my friend.

    But still that is not working.

    Please find my complete set of code.

    Code:
    <html>
    <head>sample page
    <style type="text/css" media="print"> 
    @page {
    size:landscape
    }
    </style>
    </head>
    <body>
    	<table border="1" width="120%">
    		<tr>
    			<td>
    				<table border="0"  bgcolor="yellow">
    				<thead><tr><td>Cell Head</td></tr></thead>
    				<tbody><tr><td>Cell Value</td></tr></tbody>
    				</table>
    			</td>
    			<td valign="top" style="height: 100%">
    				<table border="1"  bgcolor="yellow" style="height: 100%;">
    				<thead><tr><td>LengthColumnHead1</td></tr></thead>
    				<tbody valign="top"><tr><td>Cell Value</td></tr></tbody>
    				</table>
    			<td valign="top" style="height: 100%">
    				<table border="1"  bgcolor="yellow" style="height: 100%;">
    				<thead><tr><td>LengthColumnHead added characters still added</td></tr></thead>
    				<tbody valign="top" style="height: 50"><tr><td>Cell Value added more</td></tr></tbody>
    				</table>
    			</td>
    			<td>
    				<table border="0"  bgcolor="yellow">
    				<thead><tr><td>LengthColumnHead2</td></tr></thead>
    				<tbody><tr><td>Cell Value</td></tr></tbody>
    				</table>
    			</td>
    			<td>
    				<table border="0"  bgcolor="yellow">
    				<thead><tr><td>LengthColumnHead3</td></tr></thead>
    				<tbody><tr><td>Cell Value</td></tr></tbody>
    				</table>
    			</td>
    
    			</td>
    		</tr>
    		<tr><td align="center" colspan="5"><input type="submit" onClick="javascriipt:window.print();"></td></tr>
    	</table>
    </body>
    </html>
    Could you please tell me what is the mistake i am doing in the above code?

    --Subbu

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles