×
Clear all filters including search bar
Valeri Tandilashvili's CSS Notes
a { color: green; text-decoration: none; }
a:hover { color: red; text-decoration: underline; }
a:active{ color: orange; }
a:visited{ color: pink; text-decoration: none; }
p::first-letter
& p::first-line
)12<img src="https://sibrdzne.ge/d1_images/logo.png" alt="Logo" class="image">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam a nunc at ante eleifend tempor. In vel ullamcorper tellus, et vulputate metus. Integer pulvinar, ipsum in efficitur fringilla, dolor lacus sollicitudin tortor, vitae tincidunt nunc elit id ipsum. Proin laoreet, est ut placerat sollicitudin, lectus mi pellentesque est, vel accumsan velit sem id felis.
<p>New P</p>
border
size is included into container's width but outline
property is opposite of border, it's added outside of the containercontain
will show the entire image#img1 {
object-fit: contain;
}
cover
will take the entire space and maintain the image aspect ratio#img2 {
object-fit: cover;
}
inset
property in CSS is a shorthand for the following four properties: top
, right
, bottom
and left
.exampleText {
position: absolute;
inset: 10px 30px 60px 40px;
background-color: yellow;
}
Its parent element needs to have position
property with relative
valuediv {
background-color: green;
height: 200px;
position: relative;
color: blue;
}