HTML CSS examples for CSS Widget:Image Align
Align 2 images, one to right other to left inside div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div.wrap {<!--from w w w . ja v a 2 s. co m--> width:601px; border:2px solid Chartreuse; height:301px; position:relative; } .wrap img { border:2px solid yellow; position:absolute; bottom:0; } .wrap img:nth-of-type(1) { left:0; } .wrap img:nth-of-type(2) { right:0; } </style> </head> <body> <div class="wrap"> <img src="https://www.java2s.com/style/demo/Firefox.png"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </div> </body> </html>