我想在导航栏的左侧放置一个标题(比导航栏中的其他文本更大的字体),到目前为止,我已经将它放在左侧,但是文本被剪掉了一半,就像一半的文本在外面导航栏和它的一半在里面。我怎样才能让文本完全留在导航栏中?
CSS
<style>
#navbar ul {
margin:0 auto;
padding: 10px;
list-style-type: none;
text-align: center;
background:#1c1c1c;
}
#navbar ul li {
display: inline;
}
#navbar ul li a {
font-family: calibri;
font-size: large;
text-decoration: underline;
font-weight: 200;
border: 0.5px solid #242424;
border-radius: 2px;
padding:.3em 1em;
color: #ffffff;
background-color:transparent;
}
#navbar ul li a:hover {
color: #000;
background-color: #ffffff;
border-radius: 5px;
color:#1c1c1c;
}
#navbar {
position: fixed;
margin-top: 0;
top: 0;
left: 0;
width: 100%;
z-index:0;
}
#navbar {
overflow: hidden;
}
#navbar h1 {
float: left;
}
</style>
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>ClickonDeal.com.au-Electronics</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
</head>
<div id="navbar">
<h1>Click</h1>
<ul>
<li><a href="#">Stuff</a></li>
<li><a href="#">more stuff</a></li>
<li><a href="#">stuff</a></li>
<li><a href="#">stuff</a></li>
<li><a href="#">stuff</a></li>
</form>
</ul>
</div>
</div>
</html>