-2
opa, so I’m making a menu and I put a border-bottom on :Hover it but I think q this very tight with the menu wanted to give a space between them but I’m not getting, I tried to increase the height but without success
html {
background-color: rgb(240, 240, 240);
}
body {
width: 100%;
height: 100%;
margin: 0 auto;
}
.nav {
margin-left: -0.6%;
box-shadow:
0 1px 5px rgb(0 0 0 / 10%),
0 2px 2px rgb(0 0 0 / 6%),
0 0 2px rgb(0 0 0 / 7%);
height: 75px;
}
ul {
padding: 0px !important;
}
.menu {
margin: 0px;
margin-left: 20%;
}
.menu li {
padding: 0px;
display: inline-block;
margin-top: 30px;
padding-left: 10px;
}
.menu li a {
color: #404040;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
font-weight: 600;
font-size: 15px;
height: 100px;
}
a {
text-decoration: none;
}
.menu li a:hover {
color: #00bac6;
}
.menu li:hover {
border-bottom: 3px solid #00c1cf;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900|Crete+Round:400,400i&display=swap" rel="stylesheet">
<title>Como aprender HTML, CSS e Javascript</title>
</head>
<body>
<header class="header-1">
<nav class="nav">
<ul class="menu" type="none">
<li><a href="#" style="height: 80px !important;">Home</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">More about us</a></li>
<li><a href="#">Help</a></li>
</ul>
</nav>
</header>
</body>
</html>
html {
background-color: rgb(240, 240, 240);
}
body {
width: 100%;
height: 100%;
margin: 0 auto;
}
.nav {
margin-left: -0.6%;
box-shadow:
0 1px 5px rgb(0 0 0 / 10%),
0 2px 2px rgb(0 0 0 / 6%),
0 0 2px rgb(0 0 0 / 7%);
height: 75px;
}
ul {
padding: 0px !important;
}
.menu {
margin: 0px;
margin-left: 20%;
}
.menu li {
padding: 0px;
display: inline-block;
margin-top: 30px;
padding-left: 10px;
}
.menu li a {
color: #404040;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
font-weight: 600;
font-size: 15px;
height: 100px;
}
a {
text-decoration: none;
}
.menu li a:hover {
color: #00bac6;
}
.menu li:hover {
border-bottom: 3px solid #00c1cf;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900|Crete+Round:400,400i&display=swap" rel="stylesheet">
<title>Como aprender HTML, CSS e Javascript</title>
</head>
<body>
<header class="header-1">
<nav class="nav">
<ul class="menu" type="none">
<li><a href="#" style="height: 80px !important;">Home</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">More about us</a></li>
<li><a href="#">Help</a></li>
</ul>
</nav>
</header>
</body>
</html>
html {
background-color: rgb(240, 240, 240);
}
body {
width: 100%;
height: 100%;
margin: 0 auto;
}
.nav {
margin-left: -0.6%;
box-shadow:
0 1px 5px rgb(0 0 0 / 10%),
0 2px 2px rgb(0 0 0 / 6%),
0 0 2px rgb(0 0 0 / 7%);
height: 75px;
}
ul {
padding: 0px !important;
}
.menu {
margin: 0px;
margin-left: 20%;
}
.menu li {
padding: 0px;
display: inline-block;
margin-top: 30px;
padding-left: 10px;
}
.menu li a {
color: #404040;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
font-weight: 600;
font-size: 15px;
height: 100px;
}
a {
text-decoration: none;
}
.menu li a:hover {
color: #00bac6;
}
.menu li:hover {
border-bottom: 3px solid #00c1cf;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900|Crete+Round:400,400i&display=swap" rel="stylesheet">
<title>Como aprender HTML, CSS e Javascript</title>
</head>
<body>
<header class="header-1">
<nav class="nav">
<ul class="menu" type="none">
<li><a href="#" style="height: 80px !important;">Home</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">More about us</a></li>
<li><a href="#">Help</a></li>
</ul>
</nav>
</header>
</body>
</html>
Jorge try to give more details, if possible put a print signaling better what is this space you refer to
– hugocsl
I don’t understand the question.
– Augusto Vasques