Dies ist der Code, den ich bisher habe und ich möchte wissen, wie man die Suchleiste an die Navigationsleiste anpassen kann. Hilfe, bitte und tut mir leid, ich bin nicht wirklich gut in der Codierung das ist für eine Informationstechnologie-Klasse, die ich nehme.Wie vergrößere ich die Suchleiste?
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #8A1414;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 30px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="#news">Movies</a></li>
<li><a href="#contact">TV</a></li>
<li><a href="#about">About</a></li>
<input id="search-bar" name="search" type="text" placeholder="Search...">
<input id="search-button" name="search_submit" type="submit" value="Search">
</ul>
</body>
Ihr HTML ist ungültig. Sie können nur "li" als Kinder einer "ul" haben. ** Validiere deinen Code! ** –