2015-08-28 30 views
1

我有一個沒有散景服務器的使用散景的Django應用程序。 在我的HTML我有這樣的:向右移動的散景圖

<body> 
    <div class="container"> 
     <div id="title"> 
      <h3 style="color: yellow;">{{ title|safe }}</h3> 
     </div> 
      <div class="graph"> 
      {{ div1|safe }} 
      {{ graph|safe }} 
     </div> 
    <div id="menu"> 
      {{ link|safe }} 
     </div> 
     <div class="table"> 

      {{ table|safe }} 
     </div> 
    </div> 
    </body> 

在我的CSS我有這樣的:

.graph{ 
     margin-right: -15px; 
     margin-left: -15px; 
    } 

這是我的散點圖圖形的工具大小:

plot = figure(tools=TOOLS, x_axis_label='Position', y_axis_label='- height',plot_width=1000,plot_height=500,y_range=(-3.2,max_value+3)) 

在頂部我正在使用引導程序登錄到我的網頁。但我無法讓我的散景圖適合容器。它一直在向右移動。 任何人都可以幫助我嗎?在CSS的HTML的容器或身體的風格標籤 ,不要把任何:

回答

0

我找到了答案,我的問題由我自己

text-align:center;