I have a problem with my menu, I'm just a beginner and I'm learning.
The problem is: My menu goes in three lines. (I need only one, straight line.) I tried display:inline but it doesn't work.
MY CSS like this:
body {
height:auto;
width:auto;
background-image: url("img/bgr.png");
}
.header {
text-align:center;
margin:0px auto;
}
#header {
height:300px;
width:960px;
background-image:url("img/top.png")
}
#menu ul {
list-style: none;
}
#menu li a {
color:#fff;
text-decoration:none;
display:block;
background:url(img/manu.png);
padding:0 10px 0 10px;
height:54px;
width: 150px;
line-height:54px;
}
#menu li a:hover {
color:#fff;
text-decoration: none;
background:url(img/manu1.png);
height:54px;
width:150px;
line-height:54px;
}
And my HTML like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Pagrindinis Puslapis</title>
</head>
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<body>
<div class="header" id="header">
<tekstas><br><br><br><br><br><br>http://www.profilio.com</tekstas>
</div>
<div class="header" id='menu'>
<ul>
<li><a href='#'><span>Pagrindinis</span></a></li>
<li><a href='#'><span>Kontaktai</span></a></li>
<li><a href='#'><span>Paslaugos</span></a></li>
</ul>
</div>
</body>
</html>
Have no idea what's wrong....
Adding some extra text
<br><br><br><br><br><br>to add space. Usemarginorpaddinginstead. It's much cleaner.