title: Printing Bootstrap page in Firefox
body: <p>I have an index.html I made based on this template: <a href="http://startbootstrap.com/template-overviews/sb-admin-2/" rel="nofollow">http://startbootstrap.com/template-overviews/sb-admin-2/</a> with some minor changes (in my case, I used navbar-fixed-top and I changed .sidebar position to fixed in sb-admin-2.css)</p>
  
  <p>This index is static, only changing the section content via on click event, For example</p>
  
  <p>(Piece of index.html)</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
  
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;title&gt;System User's Guide&lt;/title&gt;
  
      &lt;!-- Bootstrap Core CSS --&gt;
      &lt;link href="css/bootstrap.min.css" rel="stylesheet" media="all"&gt;
  
      &lt;!-- MetisMenu CSS --&gt;
      &lt;link href="css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom CSS --&gt;
      &lt;link href="css/sb-admin-2.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom Fonts --&gt;
      &lt;link href="font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"&gt;
  
      &lt;script src="js/respond.js"&gt;&lt;/script&gt;
  
      &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
      &lt;!--[if lt IE 9]&gt;
          &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt;
          &lt;script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
   &lt;div id="wrapper"&gt;
  
          &lt;!-- Navigation --&gt;
          &lt;nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0" id="top"&gt;
              &lt;div class="navbar-header"&gt;
                  &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
                      &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;a class="navbar-brand" href="index.html"&gt;System&lt;/a&gt;
              &lt;/div&gt;
              &lt;!-- /.navbar-header --&gt;  
  
              &lt;div class="navbar-default sidebar" role="navigation"&gt;
                  &lt;div class="sidebar-nav navbar-collapse"&gt;
                      &lt;ul class="nav" id="side-menu"&gt;
                          &lt;li class="sidebar-search"&gt;
                              &lt;div class="input-group custom-search-form"&gt;
                                  &lt;input type="text" class="form-control" placeholder="Search..."&gt;
                                  &lt;span class="input-group-btn"&gt;
                                  &lt;button class="btn btn-default" type="button"&gt;
                                      &lt;i class="fa fa-search"&gt;&lt;/i&gt;
                                  &lt;/button&gt;
                              &lt;/span&gt;
                              &lt;/div&gt;
                              &lt;!-- /input-group --&gt;
                          &lt;/li&gt;
                          &lt;li class="active"&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a onclick="openPage('pages/login/loginwelcome.html')" href="#"&gt;Login &amp; Welcome&lt;/a&gt;&lt;/li&gt;                       
                      &lt;/ul&gt;
                  &lt;/div&gt;
                  &lt;!-- /.sidebar-collapse --&gt;
              &lt;/div&gt;
              &lt;!-- /.navbar-static-side --&gt;
          &lt;/nav&gt;
  
          &lt;!-- Page Content --&gt;
          &lt;div id="page-wrapper"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-xs-12"&gt;
                      &lt;div id="content"&gt;
                          &lt;h1 class="page-header"&gt;Home&lt;/h1&gt;
                          &lt;p&gt;Welcome to our User Guide.&lt;/p&gt;
                      &lt;/div&gt;    
                  &lt;/div&gt;
                  &lt;!-- /.col-lg-12 --&gt;
              &lt;/div&gt;
              &lt;!-- /.row --&gt;
          &lt;/div&gt;
          &lt;!-- /#page-wrapper --&gt;
  
      &lt;/div&gt;
      &lt;!-- /#wrapper --&gt;
  
      &lt;!-- jQuery Version 1.11.0 --&gt;
      &lt;script src="js/jquery-1.11.0.js"&gt;&lt;/script&gt;
  
      &lt;!-- Bootstrap Core JavaScript --&gt;
      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- Metis Menu Plugin JavaScript --&gt;
      &lt;script src="js/plugins/metisMenu/metisMenu.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- IE10 viewport hack for Surface/desktop Windows 8 bug --&gt;
      &lt;script src="js/ie10-viewport-bug-workaround.js"&gt;&lt;/script&gt;
  
      &lt;!-- Custom Theme JavaScript --&gt;
      &lt;script src="js/sb-admin-2.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          function openPage(page) {
              $("#content").load(page);
      }
  &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>(loginwelcome.html)</p>
  
  <pre><code>&lt;html&gt;    
      &lt;h1 class="page-header"&gt;Login &amp; Welcome&lt;/h1&gt;
      &lt;ol class="breadcrumb"&gt;
          &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt; &lt;span class="glyphicon glyphicon-circle-arrow-right"&gt;&lt;/span&gt;&lt;/li&gt;
          &lt;li class="active"&gt;Login &amp; Welcome&lt;/li&gt;
      &lt;/ol&gt;
  
  
  &lt;div class="panel-group" id="accordion"&gt;
    &lt;div class="panel panel-default"&gt;
          &lt;div class="panel-heading"&gt;
        &lt;h4 class="panel-title"&gt;
          &lt;a href="#links" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion"&gt;Content&lt;span class="glyphicon glyphicon-chevron-down pull-right"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/h4&gt;
      &lt;/div&gt;
      &lt;div id="links" class="panel-collapse collapse in"&gt;
        &lt;div class="panel-body"&gt;
          &lt;a href="javascript:openPage('pages/login/login.html')"&gt;Login&lt;/a&gt;&lt;/br&gt;
          &lt;a href="javascript:openPage('pages/login/welcome.html')"&gt;Welcome Screen&lt;/a&gt;&lt;/br&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  
          &lt;p&gt;Test&lt;/p&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So, the problem is: when I try to print loginwelcome.html in Chrome or IE, it works perfectly (expanding content div width to 100%, hidding sidebar etc). But when I try to print this in Firefox, there's a huge left-margin. I tried to make some changes using bootstrap print responsive classes and modifying media @print in the css as well, but is almost like if firefox doesn't recognize changes in media @print at all. I also tried the print_printer reset (in about:config) and to change some print parameters in this section, but once you change the printer the problem is there again. 
  Also, I'm hoping that there's a better way to do it or that I'm just doing something wrong in my code, cause it would be difficult to ask users to do all this "workaround".</p>
  
  <p>(Sorry about any mistakes/bad explanation, its the first time I'm asking something here)</p>