/    Sign up×
Community /Pin to ProfileBookmark

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”>[/CODE]

But this is not working…..Still i am getting the print in Portrait.

could somebody help me on this?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMaySep 09.2010 — Try adding this into your head section instead of using the body tag:

&lt;style type="text/css" media="print"&gt;
@ page {
size:landscape
}
&lt;/style&gt;
Copy linkTweet thisAlerts:
@subbukumararajaauthorSep 10.2010 — 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>
[/CODE]


Could you please tell me what is the mistake i am doing in the above code?

--Subbu
×

Success!

Help @subbukumararaja spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...