HTML CSS examples for CSS Property:display
Align Inline Element to the Right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!--from w ww . j a v a 2s. c om--> width:601px; border:2px solid Chartreuse; } .inlineLeft, .inlineRight { display:inline-block; } .inlineRight { display:inline-block; position:absolute; right:0; } </style> </head> <body> <div class="contailner"> <div class="inlineLeft"> Item 1 </div> <div class="inlineRight"> Item 2 </div> </div> </body> </html>