title: IPython notebook set width of notebook-panel (web-page)
body: <p>I want to set my IPython notebook's width to 2500px and I want it to be aligned left. How can I do this?</p>
  
  <p>I use this code to apply my own CSS:</p>
  
  <pre><code>from IPython.core.display import HTML
  def css_styling():
      styles = open("./example.css", "r").read()
      return HTML(styles)
  css_styling()
  </code></pre>
  
  <p>The content of my CSS is:</p>
  
  <pre><code>&lt;style&gt;
  div #notebook { /* centre the content */
      float: left;
      width: auto;}
  div #notebook_panel { /* main background */
      float: left;
      width: auto;}
  div.cell { /* set cell width to about 80 chars */
      width: 2000px;}
  &lt;/style&gt;
  </code></pre>
  
  <p>If I run the the IPython script with this CSS then my notebook webpage will be aligned to left and the cell's width is 2000px but the webpage turned into horizontally scrollable at about a size 1000px. So only the first half of my cells are visible.</p>
  
  <p>If I set <code>width: 2500px;</code> at <code>#notebook</code> or at <code>#notebook_panel</code> then the horizontally-scrolling disappears so the notebook webpage width will be 2500px wide and I see full of my cells but the alignment will be center. Why?</p>
  
  <p>I tried it in Firefox and Chrome as well.</p>
  
  <p>Thanks for help!</p>