enter image description hereenter image description here[
import consultin2 from '../../assets/logo/consultin2.png';
inside function
{
<nav>
<div className="navbar-logo">
<img src={consultin2} alt="ConsultIn"></img>
</div>
.......</nav>
}
.navbar-logo{
position: absolute;
display: block;
left: 0%;
margin: auto;
width: fit-content;
height: fit-content;
/* max-width: 250px; */
}
][1][enter image description here][2]I am totally stuck and frustrated in the logo part of my Web Development project. I am unable to adjust the logo in the navbar , if I am trying to do so then I am getting these types problems:
- If logo , fit the navbar then width of the nav bar increases , but I don't want to increase the width of the navbar.
2.If however I am able to adjust the logo in the nav bar then my logo gets cropped , which I don't want to do .
I only want to adjust my logo in the left side in my navigation bar width top = 0%, bottom=0% and left=0% without cropping my logo and without increasing the width of my navigation bar.
I have used .png format image.
[enter image description here][3]