So I'm trying to learn HTML and CSS for now, and not getting yet into jvS. I'm trying to create a responsive design, and I understand media queries somehow.
Basically, I have a screen-size width nav bar on the desktop with a logo in it. When I get to phone sizes, I want that logo to move on the right bottom corner of the screen and be sticky there.
Do you know that + sign on Twitter when you want to post? I want to do something like that. BUT I want to know if I can just move the element I already created for the navbar, or do I need a completely new element?
This is in HTML
header {
background-color: chartreuse;
margin: 0px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1px 20px;
}
<header>
<img class="logo" src="/Assets/Logo.png" alt="logo">
<nav>
<ul class = "links">
<li><a href="#">Home</a></li>
<li><a href="#">Recipes</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
<a class="cta" href="#"><button>Youtube</button> </a>
</header>
And I basically need that logo to move on the right bottom of the screen on screen sizes smaller than 500px. I can't find any answers, so if you have any suggestions please help me!