1
私は左に私の会社名を、右に私のメールアドレスを持っています。フロートとテキストアライメントで異常なギャッピング
<div style="color: white; float: right; padding-right: 10px; text-align:right">
<p style="font-size: 16px;">E-mail</p>
<p style="font-size: 20px; text-decordation: none;">[email protected]</p>
</div>
私は写真をアップロードすることができないので、これは説明するのが難しいかもしれません。 「電子メール」という単語と実際の電子メールの間には、(企業名の高さのような)頂点の隙間があります。
ここ全体(関連)HTMLである:
HTML:
<div style="margin: 0 auto; overflow: auto;">
<div style="background: #000; height: 80px; width: 100%; overflow: hidden;">
<h1 style="font-family: Snell Roundhand, cursive; padding-left: 10px; color: white; float: left;">New Trend Photography</h1>
<div style="color: white; float: right; padding-right: 10px; text-align:right">
<p style="font-size: 16px;">E-mail</p>
<p style="font-size: 20px; text-decordation: none;">[email protected]</p>
</div>
</div>
</div>
を私は一種のそれが一番上の行に電子メールを言いたかったし、その後[email protected]直下の行ではなく、それは私の会社の名前メイクらしいです2つの線の間の頂点間隙。私は、親ディビジョンとフレックスポジショニングで何かをしなければならないような気がします。 –
あなたは伝説です!本当にありがとう! –
あなたは大歓迎です! – Ehsan