3

I have a pretty basic problem with html & css. I've created a footer with a <p> tag and an <li> tag. Inside the <li> tag I have an image, this image however goes outside of the footer. How can I make the image go inside the footer tag?

HTML

<footer class="footer">
<p class="footerP">© Axel Halldin 2016 ©</p>
<li class="socialMedias"> <img class="facebook" src="facebook.jpg" href="https://www.facebook.com/axel.halldin1?fref=ts"/>
</li>
</footer>

CSS

.footer{
background-color:#003366;
margin:0;
padding:0;
width:90vw;
height:22.5vh;
float:right;
}

.footerP{
color:white;
font-family:FiraSans-Regular, sans-serif;
font-size:16px;
margin:0;
line-height:22.5vh;
}

.socialMedias{
float:right;
}

.facebook{
width:5vw;
height:10vh;
}
leigero
  • 3,233
  • 12
  • 42
  • 63
axul
  • 43
  • 1
  • 1
  • 8

1 Answers1

-2

Add overflow:auto; in the .css as below:

.footer{
background-color:#003366;
margin:0;
padding:0;
width:90vw;
height:22.5vh;
float:right;
overflow:auto;
}
Neeraj Kumar
  • 771
  • 2
  • 16
  • 37