In Flexbox put image at top and text-links at bottom - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex

Description

In Flexbox put image at top and text-links at bottom

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
a img {
   height:41px;
   margin:0;
   padding:0;
}

.links {<!--  w w w.j a  v a  2  s  .  c  om-->
   display:flex;
   align-items:baseline;
}
</style> 
 </head> 
 <body> 
  <div class="links"> 
   <a class="img-link"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </a> 
   <a>Link 1</a> 
   <a>Link 2</a> 
   <a>Link 3</a> 
  </div>  
 </body>
</html>

Related Tutorials