I need to make MAIN and NAV elements next to each other. Text "test" should be to the right of navbar in element MAIN Here is my code with snippet:
*, html, body {
margin: 0;
padding: 0;
}
main {
display: flex;
overflow: hidden;
}
.right {
display: inline-block;
width: 87.5%;
}
/* NAVBAR */
.navbar__left {
position: fixed;
}
nav {
display: inline-block;
font-weight: lighter;
font-family: 'Barlow', sans-serif;
background-color: #fff;
width: 12.5%;
height: 100vh;
font-size: 15px;
position: fixed;
text-align: center;
border-right: 1px solid #131313;
}
nav .title {
height: 10%;
}
nav .title img {
margin: 15px 0 15px 0;
height: 50px;
width: auto;
}
nav .links {
margin: 50% 0 50% 0;
}
nav .links ul {
list-style-type: none;
}
nav .links ul li {
margin: 25px 0;
}
nav .links ul li a {
text-decoration: none;
color: black;
}
nav .copyright {
padding-top: 50px;
height: 20%;
}
<nav class="navbar__left">
<div class="title">
<a href="">LOGO</a>
</div>
<div class="links">
<ul>
<li><a href="uzitocne-odkazy.php">UŽITOČNÉ ODKAZY</a></li>
<li><a href="kontakt.php">KONTAKT</a></li>
</ul>
</div>
<div class="copyright">
<b>NIEKTO </b>© 2022
</div>
</nav>
<main>test</main>
Everytime I tried some solution, it didn't work. I also tried to Google it / find already solved problems like this but none of them didn't work. Can somebody help me please? Thanks furtake