HTML CSS examples for CSS Layout:Div Align
Align image side by side
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> article {<!-- ww w . j av a2 s.c o m--> height:91%; margin:0; padding:0; border:0; text-align:left; float:left; } article>img { border:2px solid Chartreuse; width:201px; height:201px; display:inline-block; } </style> </head> <body> <article id="l1"> <img class="active_pic" id="a1" src="https://www.java2s.com/style/demo/InternetExplorer.png"> </article> <article id="l2"> <img class="active_pic" id="a2" src="https://www.java2s.com/style/demo/Opera.png"> </article> <article id="l3"> <img class="active_pic" id="a3" src="https://www.java2s.com/style/demo/Firefox.png"> </article> </body> </html>