<!DOCTYPE html>
<style>
  html {
    width: 280px;
    border: 10px solid green;
    padding: 0;
    margin: auto;
  }
  body {
    padding: 0;
    margin: 0;
  }
</style>
<div style="width:280px;height:300px;background:yellow;display:inline-block;"></div>
