p#bottom-right { margin: 0; background: gold; border: 1px solid crimson; height: 50px; width: 200px; position: absolute; top: 5px; right: 5px; } </style> </head> <body> <div id='relative'> <p id='bottom-right'> This element is positioned to the top right of the relatively positioned element. </p> </div>