<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
html, body { overflow:hidden }
div{
background: yellow;
width:150px;
height:50px;
margin: 0 auto;
text-align:right;
color: blue;
}
</style>
</head><body><div>test</div></body></html>