CSS
GitBook docs section concerning CSS context.
Media Queries
CSS media queries for responsive layouts.
@media screen and (max-width: 600px) {
body {
background-color: olive;
}
}Media Queries Breakpoints
max 320px
min 321px - max 480px
min 481px - max 600px
min 601px - max 768px
min 769px - max 992px
min 993px - max 1199px
min 1200px
Keyframes Animation
Keyframes animation with CSS.
Selection & First Letter
Paragraph style for text selection and first letter.
Box Shadow
Styling div with box shadow.
box-shadow: none | h-offset v-offset blur spread color | inset | initial | inherit;
none
Default value. No shadow is displayed.
h-offset
Required. The horizontal offset of the shadow. A positive value puts the shadow on the right side of the box, a negative value puts the shadow on the left side of the box.
v-offset
Required. The vertical offset of the shadow. A positive value puts the shadow below the box, a negative value puts the shadow above the box.
blur
Optional. The blur radius. The higher the number, the more blurred the shadow will be.
spread
Optional. The spread radius. A positive value increases the size of the shadow, a negative value decreases the size of the shadow.
color
Optional. The color of the shadow. The default value is the text color.
inset
Optional. Changes the shadow from an outer shadow (outset) to an inner shadow.
initial
Sets this property to its default value.
inherit
Inherits this property from its parent element.
Linear Gradient Text
Linear gradient effect in text title.
Sticky Navbar Style
Change navbar CSS style onScroll event (navbar must have position: sticky).
Adjust Images Carousel Banner
CSS fix to adjust multiple images to same size.
CSS Spinner Animation UI Element
CSS code to create a UI spinner animation.
CSS Drop Shadow Image
CSS code to add drop shadow to an image.
CSS Glowing Border Effect
CSS code create a div card with glowing border effect.
CSS Media Queries Breakpoints
CSS media queries breakpoints for responsive design.
Last updated