<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.stc_cls {
position: static;
border: 1px solid;
left: 20px;
}
</style>
</head>
<body>
Normal text :
<div class="stc_cls">
Static class applied here.
</div>
</body>
</html>
Description:-
Static Position
HTML elements are positioned static by default.
Static positioned elements are not affected by the top, bottom, left, and right properties.
Static positioned elements are not affected by the top, bottom, left, and right properties.
Output:-
Normal text :
Static class applied here.
Css:- Static position
Reviewed by Network security
on
May 09, 2019
Rating:
No comments: