CSS inset Property
Finally, the inset property has arrived for a short use that we can use with position. In this way, you can now define top left right bottom values in a single property.
For example, a structure like this;
div {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
Now you can write like this
div {
position: absolute;
inset: 0;
}
Just like the margin and padding properties, you can define double, triple or quadruple clockwise. For example;
div {
position: absolute;
inset: 10px; /* top/right/bottom/left */
inset: 10px 20%; /* top/bottom -- right/left */
inset: 10px 20% 3em; /* top -- right/left -- bottom */
inset: 10px 15px 20px 25px; /* top -- right -- bottom -- left */
}
Currently all modern browsers support it except IE and Edge.
Comments
Popular Articles
Popular Tags
- #directive
- #Function
- #Json
- #Class
- #SASS
- #Form
- #Redirect
- #API
- #Special Characters
- #Special
- #Random
- #Generating
- #
- #Text
- #Ajax
- #URL
- #Encrypting
- #React
- #Show
- #timeAgo
- #PSR-4
- #Hide
- #DDOS Protection
- #DDOS
- #cURL
- #Logic For Displaying Posts
- #Error
- #Key
- #General Error
- #1364 Field
- #Abbreviation
- #Blade
- #Version
- #QR
- #QR Code Generating
- #Array
- #Arrays with Key Values to String Statement
- #Short Tag
- #Activate
- #Real Time
- #Socket.io
- #301
- #Custom Directives
- #Iframe Detection
- #Date
- #Characters
- #Insert
- #Autoloader
- #Composer
- #Reading
There are no comments, make the firs comment