HTML CSS examples for CSS Layout:Div Align
Align three div elements in a row
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .author {<!-- w ww . j a v a 2 s . c o m--> float:left; width:601px; background:red; } .sample { width:34%; float:left; } </style> </head> <body> <div class="author"> <div class="sample"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" height="70" width="70"> </div> <div class="sample"> <p>Center</p> </div> <div class="sample"> <p class="date">Right</p> </div> </div> </body> </html>