954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Page setup settings in HTML or CSS

Hi,

I have solved table margins problem but now, I want to set "Page setup" margins in HTML or CSS. How can we do it? I dont want to set them manually all the time before printing.

Thanks

veledrom
Master Poster
758 posts since Apr 2008
Reputation Points: 42
Solved Threads: 0
 

Add below tag between head tag

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
sreein1986
Posting Whiz
306 posts since May 2008
Reputation Points: 12
Solved Threads: 34
 

Hi,
I need to set "page setup" settings to print wide tables. Because, when check "print preview" nothing changes, therefore i cant print documents as a want.
Thanks

veledrom
Master Poster
758 posts since Apr 2008
Reputation Points: 42
Solved Threads: 0
 

when you hit ctrl P it will open your printer properties. set the properties you like and save it as that.

There is no css code to set printer settings on your local printer.
This is a local machine issue with your printer settings.

casper_wang
Junior Poster in Training
89 posts since Jul 2008
Reputation Points: 13
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You