position: absolute; top: 5px; right: 5px; bottom: 5px; width: 100px; background: khaki; } </style> </head> <body> <div> <p id='offset-y'> When the top and bottom offset properties are applied to the same element, height is implied. </p> </div> </body> </html>