<!DOCTYPE HTML>
<html>
<head><style>
div {
  width: 0px;
}
span {
  border: 5px solid orange;
  margin-left: 50px;
}
</style></head>
<body><div><span><!--whitespace--> <input></span></div></body>
</html>