Search
 
SCRIPT & CODE EXAMPLE
 

CSS

a4 pagw size css

body {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  font: 12pt "Tahoma";
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.page {
  width: 21cm;
  min-height: 29.7cm;
  padding: 2cm;
  margin: 1cm auto;
  border: 1px #D3D3D3 solid;
  border-radius: 5px;
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.subpage {
  padding: 1cm;
  border: 5px red solid;
  height: 256mm;
  outline: 2cm #FFEAEA solid;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  .page {
    margin: 0;
    border: initial;
    border-radius: initial;
    width: initial;
    min-height: initial;
    box-shadow: initial;
    background: initial;
    page-break-after: always;
  }
}
Comment

a4 pagw size css

<div class="book">
  <div class="page">
    <div class="subpage">Page 1/2</div>
  </div>
  <div class="page">
    <div class="subpage">Page 2/2</div>
  </div>
</div>
 Run code snippet
Comment

PREVIOUS NEXT
Code Example
Css :: make button stretch to fit text 
Css :: show ellipsis after text length 
Css :: not hover css 
Css :: top left right bottom css shorthand 
Css :: css use value of attribute 
Css :: how to horizontally center in css 
Css :: css not last child 
Css :: underline css still there after text-decoration: none 
Css :: change icon color to gradient css 
Css :: align text in center css 
Css :: margin top inline block css 
Css :: html glow on hover 
Css :: css selector not contains attribute 
Css :: css border radius top 
Css :: media query for mobile landscape only 
Css :: css selector all class prefix 
Css :: how to make div width auto adjust 
Css :: reset list html css 
Css :: removing input border shadow 
Css :: background image syntax in css if it is in folder 
Css :: javascript canvas pixel art 
Css :: how to wrap text in css 
Css :: font. to be thinner css 
Css :: align grid items with end 
Css :: css anchor fill parent 
Css :: rgba blue colo 
Css :: css animation top goes back to start 
Css :: angular headers for enc type 
Css :: css prevent new line div 
Css :: add css to express app 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =