Hey there, I'm currently working on a website and encountering an issue with the top bar not resizing when the browser window is made smaller. I've tried looking for solutions on different websites but haven't had any luck. Any assistance you can provide would be greatly appreciated.
Below is my code:
HTML
<div class="main">
<div class ="centering">
<a href="index.html" >Home</a>
</div>
<div class="aboutbutton">
<a href="About.html">About Me</a>
</div>
<div class="portfoliobutton">
<a href="Portfolio.html">Portfolio</a>
</div>
<div class="whatforyoubutton">
<a href="What can i do for you?">What can i do for you?</a>
</div>
<div class="contactbutton">
<a href="Contact.html">Contact</a>
</div>
</div>
And here is the CSS:
.centering{
text-align:center;
margin-top:-8px;
margin-left:50px;
margin-right:1050px;
border-style:solid;
border-width:1px;
border-color:#000000;
border-radius:3px;
color:white;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size: 20px;
font-weight:bold;
background-color:#2B2930;
position:relative;
display:block;
}
// Repeat similar CSS styles for other classes
Your help is much appreciated!