Printing margins
-
Let's say I have a specific margin set to the body of my HTML page. I do it through CSS like so:
body {
margin-left: 50px;
margin-right: 50px;
margin-top: 20px;
margin-bottom: 20px;
}When this HTML gets printed, the margins seem to affect the print-out. Is there a way to fix this through CSS?
-
Let's say I have a specific margin set to the body of my HTML page. I do it through CSS like so:
body {
margin-left: 50px;
margin-right: 50px;
margin-top: 20px;
margin-bottom: 20px;
}When this HTML gets printed, the margins seem to affect the print-out. Is there a way to fix this through CSS?
You could specify for which media you declare your CSS for. Have a look at this[^] specification.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin Edbert Sydney, Australia