HTML CSS examples for CSS Layout:Position
Top-bar button positioning float right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w w w . j av a 2 s . com--> width:100%; text-align:center; } div { background:Chartreuse; display:inline-block; border-radius:11px 11px 0 0; padding:11px; font-weight:bold; font-size:19px; color:yellow; font-family:arial; } ul { list-style:none; margin:0; padding:0; display:inline-block; margin-left:301px; } ul li a, ul li button, ul li input[type=submit] { color:blue; text-decoration:none; background:none; border:none; display:inline-block; margin:0; padding:0; cursor:pointer; line-height:16px; font-size:13px; font-weight:bold; } ul li { display:inline-block; color:pink; font-size:13px; background:OrangeRed; border-radius:11px; padding:6px 11px; margin:0 6px; } </style> </head> <body> <div> Lorem i <ul> <li> <a href="#">Lorem </a> </li> <li> <button>Lore</button> </li> <li> <input type="submit" value="Add"> </li> </ul> </div> </body> </html>