HTML CSS examples for CSS Layout:Position
Have elements positioned to the right without removing them from the flow
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container {<!-- www . jav a 2 s . c om--> min-height:6px; width:501px; background:red; } #floater { height:201px; width:100px; background:blue; float:right; } </style> </head> <body> <div id="container"> <div id="floater"> Lore </div> <div style="clear:both;"></div> </div> </body> </html>