Ich habe eine Navigationsleiste oben auf meiner Website.Wie sollte ich einen Button höher machen, ohne andere Elemente zu beeinflussen?
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;
}
möchte ich die Play-Taste als die normalen Tasten größer sein. Aber wenn ich die Höhe höher als die normalen Knöpfe mache und es betrachte, ändert sich die Position der normalen Knöpfe. Wie kann ich das beheben?
Das hat nicht funktioniert. Aber danke, dass du es versucht hast ... –