I've been struggling to resize my LinkedIn logo on my website. I've attempted various methods, like using inherit and setting max height and width to 100%, but the logo keeps displaying at full size.
Do I need to use a different type of container?
body {
background-color: #2e2e2e;
margin: 0px;
}
a {
color: rgb(0, 255, 234);
text-decoration: none;
font-family: FoundrySterlingOT3W03-Bold, FoundrySterlingOT3W10- Bold, Arial, Helvetica, sans- serif;
font-weight: 900;
right: 0px;
}
a:hover {
color: white;
}
.linkedin {
height: inherit;
width: inherit;
}
.nav-custom {
padding-top: 1px;
height: 50px;
position: relative;
text-align: center;
}
.nav-custom>a {
padding-left: 30px;
padding-right: 30px;
}
.header {
background: rgba(0, 0, 0, 0.2);
position: fixed;
z-index: -1;
width: 100%;
margin-top: -20px;
max-height: 100px;
}
<div class="header">
<img class="linkedin" src="linkedin logo.png">
<nav position: fixed; class="nav-custom" ;>
<a href=#home>Home</a>
<a href=#skills>Skills</a>
<a href=#about>About</a>
<a href=#contact>Contact</a>
</nav>
</div>
<link rel="stylesheet" href="Portfolio.css">>