2013-08-29 6 views
5

Demo linkテキストは私の李

わからないでは中心ではありません。

enter image description here

HTML

<div id="the_target"> 
    <ul> 
     <li>Stephen Marston</li> 
     <li>Account Exectutive</li> 
     <li>The Company</li> 
    </ul> 
</div> 

SASS:中央に配置されないためにスティーブン・マーストンを強制することができるもので

section { 
    #the_requestor { 
     margin-top: 40px; 
     ul { margin-top: 10px; } 
     ul li { 
      text-align: center; 
      line-height: $px20; 
     } 
     li:first-child { 
      font-family: LatoBold; 
      font-size: $px30; 
      background: cyan; 
     } 
    } 
    #the_target { 
     position: relative; 
     margin-top: 40px; 
     ul { margin-top: 10px; } 
     ul li { 
      text-align: center; 
      line-height: $px20; 
     } 
     li:first-child{ 
      font-family: LatoBold; 
      font-size: $px30; 
      background: cyan; 
     } 
    } 
} 

任意の考え?

答えて

5

#mobile-action-areaには、干渉している要素がフローティングされています。このフロートをクリアする必要があります。それを行うにはさまざまな方法があります。 overflow: hidden#mobile-action-areaを追加すると修正されます。あなたも試してください:

#mobile-action-area:after { 
    display: table; 
    content: ""; 
    clear: both; 
} 
+1

前にフロートをクリアするか、または追加する必要があります「表示:インラインブロック;」このスタイルへの変更: "body#mobile-request .container#mobile-action-area" – htxryan

+0

ああそれでした!何らかの理由でボタンが低すぎるため、私は#mobile-deny-requestをハックする必要がありました。ありがとう! :) –

2

あなたは#the_target

#the_target { 
      position: relative; 
      margin-top: 40px; 
      clear:both; 
    } 
関連する問題