html content in rectangle
snippet in html

html content in rectangle

user1940

<style>
.rectangle{
padding-top: 40px;
  width:100px;
  height:100px;
  border:1px solid #000; 
  position: relative;
  text-align: center;
}
</style>

<div class="rectangle">Hello world!</div>