My Problem is that I cant get the menu in my Footer centered (http://prntscr.com/te8bzk) when I'm in the portrait mode (I'm working with media queries). position: absolute; + right: 50%;
isn't working. But maybe I overlooked something because I'm still a beginner in HTML and CSS. Js fiddle link is https://jsfiddle.net/Cxtz11/mrz2L1dt/1/
.main-footer {
border-color: white;
border-radius: 0px;
border-top-style: solid;
border-width: thick;
background;
width: 100%;
height: 100px;
position: absolute;
bottom: 0;
left: 0;
background-color: #333;
opacity: inherit;
}
.footer-nav {
list-style: none;
position: absolute;
top: 20px;
right: 50%;
}
.footer-nav li {
float: left;
}
.footer-nav li+li {
margin-left: 10px;
}
.Copyright {
display: flex;
justify-content: center;
align-items: flex-end;
margin-top: 80px;
color: #fff;
}
.Social {
position: absolute;
top: -20px;
right: 50%;
color: #fff;
}
<footer id="footer" class="main-footer clearfix">
<p class="Copyright clearfix">
S © 2020
</p>
<h1 class="Social clearfix">
<a href="https://instagram.com"> <i class="fab fa-instagram"></i> </a>
</h1>
<ul class="footer-nav clearfix">
<li><a href="/Impressum/Impressum.html">Impressum</a></li>
<li><a href="/Datenschutz/Datenschutz.html">Datenschutz</a></li>
<li><a href="/AGB/AGB.html">AGB</a></li>
</ul>
</footer>
(You may have to adjust the "display window" in JSfiddle to portrait because I'm working with media queries and there are two versions of my site.