Static Positioning
Static positioning is the default setting for elements on a webpage by bottom left and right properties. Elements are placed according to the flow of the document.
Code Sample:
<!DOCTYPE html> <html> <head> <style> .static-box { width: 200px; height: 50px; background-color: lightblue; } </style> </head> <body> <div class="static-box">This box is statically positioned.</div> </body> </html> |
Static Positioning
Static positioning is the default setting for elements on a webpage by bottom left and right properties. Elements are placed according to the flow of the document.
Code Sample:
<!DOCTYPE html> <html> <head> <style> .static-box { width: 200px; height: 50px; background-color: lightblue; } </style> </head> <body> <div class="static-box">This box is statically positioned.</div> </body> </html> |
Copyrights © 2024 letsupdateskills All rights reserved