<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> div { background-color: green; border-left: green none 0px; border-right: green none 0px; height: 50px; left: 20%; margin-left: 0px; margin-right: 0px; position: absolute; right: 20%; top: 0px; width: 20%; } </style> </head> <body> <div></div> </body> </html>