Search
 
SCRIPT & CODE EXAMPLE
 

CSS

print to pdf setting css for A4 size

@media print {  
  @page {
    size: 210mm 297mm; /* portrait */
    /* you can also specify margins here: */
    margin: 0;
    margin-right: 0; /* for compatibility with both A4 and Letter */
  }
}
Comment

print to pdf setting css for A4 size

@page {
  size: A4;
  margin: 0;
}
@media print {
  html, body {
    width: 210mm;
    height: 297mm;
  }
  /* ... the rest of the rules ... */
}
Comment

PREVIOUS NEXT
Code Example
Css :: rendre une div scrollable 
Css :: CSS :hover Selector 
Css :: bootstrap grid only css npm install 
Css :: display: inline; 
Css :: Service Worker Navigator check 
Css :: css change background color 
Css :: css großbuchstaben erzwingen 
Css :: css apply style to direct children 
Css :: filter css 
Css :: calling synchronous methods on native modules is not supported in chrome 
Css :: less set media size 
Css :: how to make focus outline round in html 
Css :: align svg and text inside button 
Css :: var in css 
Css :: css clip-path 
Css :: css custom cursor form image 
Css :: Extracting data in scrapy 
Css :: flex css 
Css :: what is padding in css 
Css :: table tr sortable helper css 
Css :: flex-grow css 
Css :: css hover change other element 
Css :: css grid cheat sheet 
Css :: css calc margin-top based on height? 
Css :: button slanted slide on hover 
Css :: css arrange footer links 
Css :: dxxxxxxx 
Css :: css locks 
Css :: mathjax beautiful math in all browsers 
Css :: css padding top screen height 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =