このボックスがあり、インラインブロックテキストエレメントが3つあります。左と右のテキストは機能していますが、中央のテキストは正しく中央揃えされていません。 View hereインラインブロックテキストがセンタリングされていません
HTML:
<body>
<div class="container-fluid text-center" id="banner">
<p class="text-left inline-block shordy" id="inline1">We're On Your Side...</p>
<span class="text-center" id="hero" style="text-align: center;">Welcome To Property Snagging Direct...</span>
<p class="inline-block text-right shordy" id="inline3"><i>Your Independent, Specialist Property Inspectors</i></p>
</div><!-- text-center -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</body>
CSS:
div.row #banner{
padding-top: 0;
margin-bottom: 0.8em;
background-color: #FF9935;
border: 1px solid #ccc;
color: #000;
}
div.row #banner p{
margin-bottom: 0;
}
div.row #banner .shordy{
font-family: lato, serif;
font-size: 1.1em;
font-weight: 900;
margin-top: 0.5em;
line-height: 1.1em;
}
div.row #banner #hero{
font-family: lato, serif;
font-size: 1.3em;
font-weight: 900;
}
.inline-block{
display: inline-block;
}
#inline1{
float: left;
}
#inline3{
float: right;
}
.banner{
display: inline-block;
}
あなたは私が話しているかを見ることができますので、結果ボックスを拡張してください。
*これは、「プロパティひっかかり直接へようこそ...」です*
はかなり私には中央に見えます。ブラウザの問題? – anomaaly
私はChromeを使用しています – Gulnoor
@anomaaly mayby彼は他のテキストの幅に関係なく、 –