2
私は自分のウェブサイトの上部にナビゲーションバーを持っています。他の要素に影響を与えずにボタンを高くするにはどうすればよいですか?
HTML:
<text align="center">
<div class="home-nav">
<a href="#whats-new"><button class="nav-btn">What's New</button></a>
<a href=""><button class="nav-btn">Community</button></a>
<button class="play-btn">Coming Soon</button>
<button class="nav-btn">Profile</button>
<a href=""><button class="nav-btn">Information</button></a>
</text>
CSS:
.home-nav {
width:1240px;
\t height:49px;
\t background-color:#F1B84E;
\t border:5px solid #FFDE84;
\t border-style:outset;
} \t
.nav-btn {
\t width:auto;
\t height:49px;
\t background-color:#F1B84E;
\t border:none;
\t font-family:showcard gothic;
\t color:white;
\t -webkit-text-stroke:1.25px #000000;
-webkit-text-fill-color:#FFFFFF;
\t font-size:20px;
}
.play-btn {
width:auto;
height:69px;
\t background-color:#79E119;
\t -moz-border-radius:10px;
\t -webkit-border-radius:10px;
\t border:5px solid #FFFFFF;
\t font-size:20px;
\t font-family:showcard gothic;
\t color:white;
}
私は再生ボタンを通常のボタンよりも大きくなりたいです。しかし、高さを通常のボタンより高くして見ると、通常のボタンの位置が変わります。これをどうすれば解決できますか?
これは機能しませんでした。しかし、試してくれてありがとう... –