2014-01-29 20 views
-1

當我重新大小我的瀏覽器,並滾動到右端, 我得到像下圖中的標頭,http://awesomescreenshot.com/02a29uof91滾動時如何填寫標題?

This is my output

即使計算器頭也顯示這樣的..

如何滾動時要填寫標題?

CSS

body 
{ 
    margin: 0; 
    padding: 0; 
    line-height: 1.5em; 
    font-family: Arial, Helvetica, sans-serif; 
    color: #666; 
    background: #fff; 
} 

#templatemo_header_wrapper 
{ 
    height: 114px; 
    margin: 0 auto; 
    background: #19446a url(images/templatemo_header_bg.jpg) repeat-x; 
} 

#templatemo_header 
{ 
    width: 1200px; 
    margin: 0 auto; 
} 

#templatemo_menu_wrapper 
{ 
    clear: both; 
    width: 100%; 
    height: 41px; 
    margin: 0 auto; 
    background: url(images/templatemo_menu_bg.jpg) repeat-x; 
} 

#templatemo_menu 
{ 
    width: 1320px; 
    height: 41px; 
    margin: 0 auto; 
} 

#templatemo_menu ul 
{ 
    margin: 0 0 0 28px; 
    padding: 0px; 
    list-style: none; 
} 

#templatemo_menu ul li 
{ 
    padding: 0px; 
    margin: 0px; 
    display: inline; 
} 

#templatemo_menu ul li a 
{ 
    float: left; 
    display: block; 
    height: 22px; 
    width: 115px; 
    padding: 13px 0 0 0; 
    background: url(images/templatemo_menu.jpg) bottom no-repeat; 
    text-align: center; 
    font-size: 14px; 
    text-decoration: none; 
    color: #FFF; 
    font-weight: bold; 
    outline: none; 
} 

HTML

<div id="templatemo_header_wrapper" > 
     <div id="templatemo_header"> 
      <div class="style1"> 
       <table width="1200px"> 
        <tbody> 
         <tr> 
          <td style="text-align: left"> 
           <p> 
            Heading 
           </p> 
          </td> 
          <td align="right"> 
           <table> 
            <tbody> 
             <tr> 
              <td> 
               <img height="50px" src="images/x.PNG" alt="x"> 
              </td> 
              <td> 
               <strong><span style="font-family: Times New Roman; text-transform: uppercase; font-size: 18pt;"> 
                Comapny name</span></strong> 
               <br> 
               <span style="font-size: 14px; font-weight: normal;">Pvt. 
                Ltd.</span> 
              </td> 
             </tr> 
            </tbody> 
           </table> 
          </td> 
         </tr> 
        </tbody> 
       </table> 
      </div> 
     </div> 
    </div> 
+0

你在問一個編程問題嗎? – GreenAsJade

+0

你的代碼在哪裏? – enyce12

回答

0

一些代碼將是有益的。一般來說,如果你想水平填充東西,你需要指定一個100%寬度的容器,然後放置(或浮動)其中的元素。

而我在stackoverflow.com上看不到任何這樣的事情,無論我使窗口有多寬。