I am currently working on optimizing the mobile version of our website and have encountered a roadblock while trying to center the logo in the header section. I have attempted using the flex
property along with justify-content:center;
. Here is the snippet of code in question:
<header>
<div class="container center-me">
<div class="responsive-logo"></div>
<div class="row">
<div class="align-items-center justify-content-center">
<nav>
<div class="logo-holder"></div>
<ul class="clearfix">
<li><a href="{% url 'index' %}">Home</a></li>
<li class="dot">.</li>
<li><a href="{{ Anthony.go_to_product_page }}" class="r_spacer">Anthony</a></li>
<li><a href="{{ Jackson.go_to_product_page }}">Jackson</a></li>
<li class="dot">.</li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div class="hero"></div>
</header>
Your CSS styles might be contributing to the confusion as well. The height of the header element seems to be causing issues, and adjusting or removing certain elements affects the layout. Additionally, the challenge of centering the logo within its containing div persists... I would appreciate any guidance or corrections you can provide. As a beginner, this process has been quite challenging for me. Thank you for your assistance!