sudhakarinfotech
(current)
Run Code
Live Code Editor- CSS Static Position
Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>CSS Positioning Property</title> <style type="text/css"> div { padding: 20px; background: #7dc765; } .box { position: static; left: 150px; top: 150px; } </style> </head> <body> <h1>CSS Static Property</h1> <div> By default CSS static property is applied on the HTML element. </div> <br /> <div class="box"> Here, CSS static property is applied on the .box element but the left and top property can not work with a static property. </div> </body> </html>
Source Code Output :
Running