Page Print not centralized

Asked

Viewed 38 times

0

I am facing a small problem by clicking on "Submit" button to print a particular page, but it is not centralized in windows operating system browser.

Follow the wrong and wrong printscreen(the second image):

Página errada

Página que seria correta

Follow the css code:

    html, body {
  height:100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.ati-guia-form {
  font-size: 12px !important;
  color: #ddd;
}
.ati-guia-form .ati-form-head {
  /*padding: 10px 0 10px !important;*/
  border-bottom: 4px solid #045745 !important;
  /*margin-bottom: 9px !important;*/
  margin: 0 !important;
    padding: 0 !important;
}
.ati-guia-form .ati-form-head img {
  width: 190px !important;
}
.ati-guia-form .ati-form-head ul > li {
  text-indent: -4em !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  font-size: 12px !important;
}
.ati-guia-form .ati-form-head h1 {
  margin-top: 0px !important;
  font-size: 11px !important;
  color: #045745 !important;
}
.ati-guia-form .ati-form-body {
  -moz-placeholder-color: transparent !important;
  -ms-input-placeholder-color: transparent !important;
}
.ati-guia-form .ati-form-body label {
  padding: 0 !important;
  margin: 0 !important;
}
.ati-guia-form .ati-form-body h2 {
  font-size: 14px !important;
}
.ati-guia-form .ati-form-body label[class^='checkbox-inline'] {
  /*padding: 5px 1px 0 !important;*/
}
.ati-guia-form .ati-form-body h3 {
  font-size: 14px !important;
  margin: 140px 0 16px 0 !important;
  padding-top: 3px !important;
}
input[class^='ati-btn-'] {
  display: none !important;
}
.ati-guia-form .ati-form-body .form-control {
  margin-bottom: 0 !important;
}
.ati-guia-form .ati-form-body .form-group {
  margin-bottom: 8px !important;
}
.ati-guia-form .ati-form-body ::-webkit-input-placeholder {
  color: transparent !important;
}
.ati-guia-form .ati-form-body ::-moz-placeholder {
  color: transparent !important;
}
div#popmake-97{
  background-color: black !important;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#page{
  display: none !important;
}

label.checkbox-inline {
    height: 0;
    font-size: 11px;
}
input[type="checkbox"], input[type="radio"] {
    float: left;
}
label.checkbox-inline {
    float: left;
    padding: 0 !important;
    margin: 0;
    font-size: 13px;
}

label.checkbox-inline input {
    /*float: left;*/
    /*margin: 3px;
    margin-left: 10px;*/
    margin-top: -15px;
    position: relative;
    top: -10px;
}







  * {
    /*height: 10px !important;*/
    color: #000000 !important;
    background: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    /*font-size: 20px !important;*/
    margin-bottom: 3px !important;
  }
  .pum-theme-487 .pum-title{
    display: none !important;
  }
  .ati-guia-form .ati-form-head div.col-xs-4 > h1{
    font-size: 16px !important;
  }
  .ati-guia-form .ati-form-head{
    padding-bottom: 50px !important;
  }
  .form-group input {
      margin-top: 10px !important;
  }
  .ati-form-body {
    /*margin-top: 50px!important;*/
  }

  .container-fluid.rodape1{
    display:none !important;
  }
  .container-fluid.rodape2{
    display:none !important;
  }
  .container-fluid.copy{
    display:none !important;
  }
  input{
    height: 24px !important;
  }
  .ati-guia-form .ati-form-head h1 {
      font-size: 12px;
  }

  .ati-guia-form .ati-form-head img {
      width: 250px;
  }

  .ati-guia-form .ati-form-head {
      margin-bottom: 0;
      padding-bottom: 5px;
  }

  label {
      font-size: 11px !important;
  }

  .ati-guia-form .ati-form-head {
      margin: 0 !important;
      padding: 0 !important;
  }

  body .ati-guia-form .ati-form-head h1 {
      margin: 0 !important;
      font-size: 11px !important;
  }

.ati-form-body p {
    display: none;
}
.ati-form-body p {
    display: none;
}
button.pum-close.popmake-close {
    display: none;
}

Note: The second image is on Mac OS X

  • Tested only on Safari or other browsers too? This window is controlled by the browser’s user-agent and has default behavior... unless you are calling this window.print with JS... Then you might be bugging something

  • I already did the test, on mac it works normally, already in windows gets cut as if it had a padding but does not have.

  • In CSS puts @page { margin:0mm;} and look if it improves something... it’s just a test, I don’t know if it will work there

  • I took the test yet nothing, it’s very strange....

  • I already tested, the problem is that it seems that in windows is not Edo @page print

  • It is pq in CSS has to look like this @media print { @page {margin: 0mm;} }

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.