chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
f3e967af-e6c1-4dc2-8401-cfe5c63eaf27
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/circular-progress-bar.md
unknown
128e9648-176c-482a-bf98-ec0527a8679c
3
SemanticChunker@1.0.0
e8f91244f0e3cbc11e11bcd1a4d0bbdf72eefe8f7345c50aa72f6e5d1bb28a41
[Anatomy of a circular progress bar > Filling the progress indicator] ## Filling the progress indicator Now that we have the basic structure in place, we need to **fill the progress indicator**. To do this, we'll use the `stroke-dasharray` property, which takes alternating values for lengths and dashes. To create a ...
unknown
unknown
[Anatomy of a circular progress bar > Filling the progress indicator] ## Filling the progress indicator Now that we have the basic structure in place, we need to **fill the progress indicator**. To do this, we'll use the `stroke-dasharray` property, which takes alternating values for lengths and dashes. To create a ...
[Anatomy of a circular progress bar > Filling the progress indicator] ## Filling the progress indicator Now that we have the basic structure in place, we need to **fill the progress indicator**. To do this, we'll use the `stroke-dasharray` property, which takes alternating values for lengths and dashes. To create a ...
code_snippets
3050e2fd-b183-4ecf-9300-f155c2432b96
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/centering.md
unknown
8b9983a8-8433-487a-955d-488d07013588
0
SemanticChunker@1.0.0
90f6bedb01b5a363556d5025405990c05f9a59a14c6d51db3247cceb8016354c
--- title: Centering content with CSS language: css tags: [layout] cover: malibu excerpt: Centering content with CSS might often feel difficult. Here are 4 easy ways you can do it. listed: true dateModified: 2024-05-07 --- _How to center a div_ has become a little bit of a joke in the web development community, and fo...
unknown
unknown
--- title: Centering content with CSS language: css tags: [layout] cover: malibu excerpt: Centering content with CSS might often feel difficult. Here are 4 easy ways you can do it. listed: true dateModified: 2024-05-07 --- _How to center a div_ has become a little bit of a joke in the web development community, and fo...
--- title: Centering content with CSS language: css tags: [layout] cover: malibu excerpt: Centering content with CSS might often feel difficult. Here are 4 easy ways you can do it. listed: true dateModified: 2024-05-07 --- _How to center a div_ has become a little bit of a joke in the web development community, and fo...
code_snippets
50aed445-11f7-4933-9452-81bce14d3314
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/centering.md
unknown
8b9983a8-8433-487a-955d-488d07013588
4
SemanticChunker@1.0.0
90fc1cd896a880a52fa03fe07debeea974ada71c299d0617e87fe5e04417e846
[Flexbox centering > Table centering] ## Table centering Last but not least, **table** centering is an older technique which you might favor when working with **older browsers**. It depends on the use of `display: table` in the container element, making it behave like a `<table>` element. This allows the child elemen...
unknown
unknown
[Flexbox centering > Table centering] ## Table centering Last but not least, **table** centering is an older technique which you might favor when working with **older browsers**. It depends on the use of `display: table` in the container element, making it behave like a `<table>` element. This allows the child elemen...
[Flexbox centering > Table centering] ## Table centering Last but not least, **table** centering is an older technique which you might favor when working with **older browsers**. It depends on the use of `display: table` in the container element, making it behave like a `<table>` element. This allows the child elemen...
code_snippets
71536ffe-8b97-413d-978a-f581a3b83783
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/centering.md
unknown
8b9983a8-8433-487a-955d-488d07013588
2
SemanticChunker@1.0.0
c466e6480fbd49ff0e8f3f4c8c74bfa965e0225619e97b18dba8a9f7b5bddbc2
[Flexbox centering > Grid centering] ## Grid centering Using the **grid module** is very similar to flexbox and also a common technique, especially if you are **already using grid in your layout**. The only difference from the previous technique is that you use `display: grid` in the container element and then center...
unknown
unknown
[Flexbox centering > Grid centering] ## Grid centering Using the **grid module** is very similar to flexbox and also a common technique, especially if you are **already using grid in your layout**. The only difference from the previous technique is that you use `display: grid` in the container element and then center...
[Flexbox centering > Grid centering] ## Grid centering Using the **grid module** is very similar to flexbox and also a common technique, especially if you are **already using grid in your layout**. The only difference from the previous technique is that you use `display: grid` in the container element and then center...
code_snippets
84b51ba3-4a66-40eb-a569-bb20a35495ce
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/centering.md
unknown
8b9983a8-8433-487a-955d-488d07013588
3
SemanticChunker@1.0.0
8964d1491e1012a98446320e233314e1c8a6e932aa309a4de25ea9da402208b0
[Flexbox centering > Transform centering] ## Transform centering Transform centering uses, as the name implies, **CSS transforms** to center an element. It depends on the container element having a `position: relative`, allowing the child element to utilize `position: absolute` to position itself. Then `left: 50%` an...
unknown
unknown
[Flexbox centering > Transform centering] ## Transform centering Transform centering uses, as the name implies, **CSS transforms** to center an element. It depends on the container element having a `position: relative`, allowing the child element to utilize `position: absolute` to position itself. Then `left: 50%` an...
[Flexbox centering > Transform centering] ## Transform centering Transform centering uses, as the name implies, **CSS transforms** to center an element. It depends on the container element having a `position: relative`, allowing the child element to utilize `position: absolute` to position itself. Then `left: 50%` an...
code_snippets
fd3947ff-5055-4801-aee1-520bc783806b
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/centering.md
unknown
8b9983a8-8433-487a-955d-488d07013588
1
SemanticChunker@1.0.0
11b0adcb12911644dbe4321dfcd5e7cff7baa088da6110eddf1fd9106b7e712b
[Flexbox centering] ## Flexbox centering Using **flexbox** to vertically and horizontally center content is usually the **preferred method**. All it takes is three lines of code in the container element to set `display: flex` and then center the child element vertically and horizontally using `align-items: center` an...
unknown
unknown
[Flexbox centering] ## Flexbox centering Using **flexbox** to vertically and horizontally center content is usually the **preferred method**. All it takes is three lines of code in the container element to set `display: flex` and then center the child element vertically and horizontally using `align-items: center` an...
[Flexbox centering] ## Flexbox centering Using **flexbox** to vertically and horizontally center content is usually the **preferred method**. All it takes is three lines of code in the container element to set `display: flex` and then center the child element vertically and horizontally using `align-items: center` an...
code_snippets
192379f9-fbd4-4b7b-bc8a-c53e66e7bb1d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
5
SemanticChunker@1.0.0
959267ebfff573e7d7df86037c84cef519c6740e0d8f5da9c01ea5b3c0c2958a
[Stripes pattern > Polka dot pattern] ## Polka dot pattern <div class="pattern-box polka"></div> ```css .polka { background-color: #fefefe; background-image: radial-gradient(#5394fd 1.2px, #fefefe 1.2px); background-size: 24px 24px; } ```
unknown
unknown
[Stripes pattern > Polka dot pattern] ## Polka dot pattern <div class="pattern-box polka"></div> ```css .polka { background-color: #fefefe; background-image: radial-gradient(#5394fd 1.2px, #fefefe 1.2px); background-size: 24px 24px; } ```
[Stripes pattern > Polka dot pattern] ## Polka dot pattern <div class="pattern-box polka"></div> ```css .polka { background-color: #fefefe; background-image: radial-gradient(#5394fd 1.2px, #fefefe 1.2px); background-size: 24px 24px; } ```
code_snippets
1cbfca40-09f1-43f3-8daa-65821b6193cd
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
2
SemanticChunker@1.0.0
27e10d8d0e36f1aeaa1af5eebe533cc4f7260e65eb16cb172f2737a511ceb528
.isometric { background-color: #fefefe; background-image: linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(150deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparen...
unknown
unknown
.isometric { background-color: #fefefe; background-image: linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(150deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparen...
.isometric { background-color: #fefefe; background-image: linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(150deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd), linear-gradient(30deg, #5394fd 12%, transparent 12.5%, transparen...
code_snippets
5315d5ce-9148-4bed-abde-6e564d73dd05
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
9
SemanticChunker@1.0.0
fb761a277ddff25fdda141ccedd6a0ddd3cb9d297d980826e15d20fa168dd26c
[Stripes pattern > Diagonal pattern] ## Diagonal pattern <div class="pattern-box diagonal"></div> ```css .diagonal { background-color: #fefefe; background: repeating-linear-gradient( 45deg, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe 60px ); } ```
unknown
unknown
[Stripes pattern > Diagonal pattern] ## Diagonal pattern <div class="pattern-box diagonal"></div> ```css .diagonal { background-color: #fefefe; background: repeating-linear-gradient( 45deg, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe 60px ); } ```
[Stripes pattern > Diagonal pattern] ## Diagonal pattern <div class="pattern-box diagonal"></div> ```css .diagonal { background-color: #fefefe; background: repeating-linear-gradient( 45deg, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe 60px ); } ```
code_snippets
5dff67a5-1f77-4313-aeda-5f79deeea3fc
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
11
SemanticChunker@1.0.0
4e4d27ae9b24f3083bcfbff28f224ba11bcbe1a4358816e7bd8aa4c349812eeb
[Stripes pattern > Waves pattern] ## Waves pattern <div class="pattern-box wavy"></div> ```css .wavy { background-color: #fefefe; background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #fefefe 24px ), repeating-linear-gradient(#5394fd55, #5394fd); } ```
unknown
unknown
[Stripes pattern > Waves pattern] ## Waves pattern <div class="pattern-box wavy"></div> ```css .wavy { background-color: #fefefe; background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #fefefe 24px ), repeating-linear-gradient(#5394fd55, #5394fd); } ```
[Stripes pattern > Waves pattern] ## Waves pattern <div class="pattern-box wavy"></div> ```css .wavy { background-color: #fefefe; background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #fefefe 24px ), repeating-linear-gradient(#5394fd55, #5394fd); } ```
code_snippets
602f54ae-b2ce-4ae0-933f-e4aa80632ecb
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
12
SemanticChunker@1.0.0
0d37b23bbc0b6cb36e4c5de513dea1a2d7c8e3fcf3f52cd1241c2e897e167e7d
[Stripes pattern > Isometric pattern] ## Isometric pattern <div class="pattern-box isometric"></div> ```css .isometric { background-color: #fefefe; background-image: linear-gradient( 30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd ), linear-gradient( 150deg, #5394fd 12%, t...
unknown
unknown
[Stripes pattern > Isometric pattern] ## Isometric pattern <div class="pattern-box isometric"></div> ```css .isometric { background-color: #fefefe; background-image: linear-gradient( 30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd ), linear-gradient( 150deg, #5394fd 12%, t...
[Stripes pattern > Isometric pattern] ## Isometric pattern <div class="pattern-box isometric"></div> ```css .isometric { background-color: #fefefe; background-image: linear-gradient( 30deg, #5394fd 12%, transparent 12.5%, transparent 87%, #5394fd 87.5%, #5394fd ), linear-gradient( 150deg, #5394fd 12%, t...
code_snippets
64757ed2-ed98-4062-829f-210d32d0b094
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
8
SemanticChunker@1.0.0
1b5502dfc06d8a98521011f32e4d5a2262fbff37b80a2bc370873bfc954d2b12
[Stripes pattern > Paper pattern] ## Paper pattern <div class="pattern-box paper"></div> ```css .paper { background-color: #fefefe; background-image: linear-gradient(#5394fd 4.8px, transparent 4.8px), linear-gradient(90deg, #5394fd 4.8px, transparent 4.8px), linear-gradient(#5394fd 2.4px, transparent 2.4px), li...
unknown
unknown
[Stripes pattern > Paper pattern] ## Paper pattern <div class="pattern-box paper"></div> ```css .paper { background-color: #fefefe; background-image: linear-gradient(#5394fd 4.8px, transparent 4.8px), linear-gradient(90deg, #5394fd 4.8px, transparent 4.8px), linear-gradient(#5394fd 2.4px, transparent 2.4px), li...
[Stripes pattern > Paper pattern] ## Paper pattern <div class="pattern-box paper"></div> ```css .paper { background-color: #fefefe; background-image: linear-gradient(#5394fd 4.8px, transparent 4.8px), linear-gradient(90deg, #5394fd 4.8px, transparent 4.8px), linear-gradient(#5394fd 2.4px, transparent 2.4px), li...
code_snippets
864759f8-ac3d-4158-94db-a4a859a2f1da
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
1
SemanticChunker@1.0.0
8a2f54d437a49395b62fad46bac3a493f0ed8c19c5cce9d10e2268e6ea2dd1b0
.rectangles { background-color: #fefefe; background-image: repeating-linear-gradient(45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd), repeating-linear-gradient(45deg, #5394fd 25%, #fefefe 25%, #fefefe 75%, #5394fd 75%, #5394fd); background-position: 0 0, 24px 24px; background-size: 48px ...
unknown
unknown
.rectangles { background-color: #fefefe; background-image: repeating-linear-gradient(45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd), repeating-linear-gradient(45deg, #5394fd 25%, #fefefe 25%, #fefefe 75%, #5394fd 75%, #5394fd); background-position: 0 0, 24px 24px; background-size: 48px ...
.rectangles { background-color: #fefefe; background-image: repeating-linear-gradient(45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd), repeating-linear-gradient(45deg, #5394fd 25%, #fefefe 25%, #fefefe 75%, #5394fd 75%, #5394fd); background-position: 0 0, 24px 24px; background-size: 48px ...
code_snippets
b330e7f7-1538-4cae-8be7-0f97aea940bc
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
3
SemanticChunker@1.0.0
c45b4c98961b5647809e5803c52ef4cdd012ecd99047ec710ce5bad45d7a06fd
[Stripes pattern] ## Stripes pattern <div class="pattern-box lines-2"></div> ```css .lines-2 { background-color: #fefefe; background-image: linear-gradient( to right, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe ); background-size: 24px 100%; } ```
unknown
unknown
[Stripes pattern] ## Stripes pattern <div class="pattern-box lines-2"></div> ```css .lines-2 { background-color: #fefefe; background-image: linear-gradient( to right, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe ); background-size: 24px 100%; } ```
[Stripes pattern] ## Stripes pattern <div class="pattern-box lines-2"></div> ```css .lines-2 { background-color: #fefefe; background-image: linear-gradient( to right, #5394fd, #5394fd 12px, #fefefe 12px, #fefefe ); background-size: 24px 100%; } ```
code_snippets
bce05d25-7cdb-4a6f-a07d-350ef3745057
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
0
SemanticChunker@1.0.0
4e10617dd6109dec222608ed6be340c6c9cb4e7a5c905c42cb605c8403a5617a
--- title: 10 beautiful CSS background patterns shortTitle: CSS background patterns language: css tags: [visual,cheatsheet] cover: armchair-design excerpt: I hand picked 10 of my favorite CSS background patterns from MagicPattern for your next project. Get them now! listed: true dateModified: 2024-05-09 --- [MagicPatt...
unknown
unknown
--- title: 10 beautiful CSS background patterns shortTitle: CSS background patterns language: css tags: [visual,cheatsheet] cover: armchair-design excerpt: I hand picked 10 of my favorite CSS background patterns from MagicPattern for your next project. Get them now! listed: true dateModified: 2024-05-09 --- [MagicPatt...
--- title: 10 beautiful CSS background patterns shortTitle: CSS background patterns language: css tags: [visual,cheatsheet] cover: armchair-design excerpt: I hand picked 10 of my favorite CSS background patterns from MagicPattern for your next project. Get them now! listed: true dateModified: 2024-05-09 --- [MagicPatt...
code_snippets
cad81ba3-e049-4f4d-b7bc-b2fce09eb2c2
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
10
SemanticChunker@1.0.0
eebdfdb73e46c6b0eabb56849650e559f9646f29fb552879dbc02055fac41ebe
[Stripes pattern > Triangles pattern] ## Triangles pattern <div class="pattern-box triangle"></div> ```css .triangle { background-color: #fefefe; background-image: linear-gradient(45deg, #5394fd 50%, #fefefe 50%); background-size: 24px 24px; } ```
unknown
unknown
[Stripes pattern > Triangles pattern] ## Triangles pattern <div class="pattern-box triangle"></div> ```css .triangle { background-color: #fefefe; background-image: linear-gradient(45deg, #5394fd 50%, #fefefe 50%); background-size: 24px 24px; } ```
[Stripes pattern > Triangles pattern] ## Triangles pattern <div class="pattern-box triangle"></div> ```css .triangle { background-color: #fefefe; background-image: linear-gradient(45deg, #5394fd 50%, #fefefe 50%); background-size: 24px 24px; } ```
code_snippets
e0b74e83-35b1-4650-8533-0309ff3d3386
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
6
SemanticChunker@1.0.0
ba039b724a1d5c7070174030c2d698624ec70459008d12e9486c429816c000f2
[Stripes pattern > Checkerboard pattern] ## Checkerboard pattern <div class="pattern-box rectangles"></div> ```css .rectangles { background-color: #fefefe; background-image: repeating-linear-gradient( 45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd ), repeating-linear-gradient( ...
unknown
unknown
[Stripes pattern > Checkerboard pattern] ## Checkerboard pattern <div class="pattern-box rectangles"></div> ```css .rectangles { background-color: #fefefe; background-image: repeating-linear-gradient( 45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd ), repeating-linear-gradient( ...
[Stripes pattern > Checkerboard pattern] ## Checkerboard pattern <div class="pattern-box rectangles"></div> ```css .rectangles { background-color: #fefefe; background-image: repeating-linear-gradient( 45deg, #5394fd 25%, transparent 25%, transparent 75%, #5394fd 75%, #5394fd ), repeating-linear-gradient( ...
code_snippets
e32bcda2-b247-452f-8036-1aaf59dfbbc8
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
7
SemanticChunker@1.0.0
95320d6b07360345c4680d6636a825691a7b6fdc4f8746b2976d12abefdb9e55
[Stripes pattern > Rhombus pattern] ## Rhombus pattern <div class="pattern-box rhombus"></div> ```css .rhombus { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transpare...
unknown
unknown
[Stripes pattern > Rhombus pattern] ## Rhombus pattern <div class="pattern-box rhombus"></div> ```css .rhombus { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transpare...
[Stripes pattern > Rhombus pattern] ## Rhombus pattern <div class="pattern-box rhombus"></div> ```css .rhombus { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transpare...
code_snippets
fc6c74ae-55a5-4ba3-9a03-a64d9147d680
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/10-css-background-patterns.md
unknown
6a45782f-4a7f-4a35-9354-3f7e9e9658e6
4
SemanticChunker@1.0.0
219cc6428c2f127a97da76f7d90c6add40f30402e99be1e97e15da78516fc7bc
[Stripes pattern > Zig zag pattern] ## Zig zag pattern <div class="pattern-box zigzag"></div> ```css .zigzag { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transparent...
unknown
unknown
[Stripes pattern > Zig zag pattern] ## Zig zag pattern <div class="pattern-box zigzag"></div> ```css .zigzag { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transparent...
[Stripes pattern > Zig zag pattern] ## Zig zag pattern <div class="pattern-box zigzag"></div> ```css .zigzag { background-color: #fefefe; background-image: linear-gradient(135deg, #5394fd 25%, transparent 25%), linear-gradient(225deg, #5394fd 25%, transparent 25%), linear-gradient(45deg, #5394fd 25%, transparent...
code_snippets
cc5e8626-ca01-438f-8d68-55267d36fec0
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/card-image-cutout.md
unknown
5e0a85fc-97e5-41c8-ab62-01af34ed3d08
0
SemanticChunker@1.0.0
cc0d3c7d17b929b1da3efaa1fddb448df1f9c054234d9c2efdaa7f9c9273c63e
--- title: Card with image cutout language: css tags: [visual] cover: radio-monstera excerpt: Cutout effects seem tricky to implement, but they really aren't. CSS has you covered! listed: true dateModified: 2024-09-13 --- Cutout effects are a great way to add visual interest to your website. They can be used to create...
unknown
unknown
--- title: Card with image cutout language: css tags: [visual] cover: radio-monstera excerpt: Cutout effects seem tricky to implement, but they really aren't. CSS has you covered! listed: true dateModified: 2024-09-13 --- Cutout effects are a great way to add visual interest to your website. They can be used to create...
--- title: Card with image cutout language: css tags: [visual] cover: radio-monstera excerpt: Cutout effects seem tricky to implement, but they really aren't. CSS has you covered! listed: true dateModified: 2024-09-13 --- Cutout effects are a great way to add visual interest to your website. They can be used to create...
code_snippets
d4f42abd-0332-4a07-bbd5-ac5e70eec08e
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/drop-caps.md
unknown
3e714452-80b6-449e-bcd9-d28fadb1f8e9
0
SemanticChunker@1.0.0
985a81703193e4b9b95a9656b6f7c5e0be54e56b8dc9eaefc7356be75d59aa58
--- title: Drop caps with pure CSS shortTitle: Drop caps language: css tags: [visual] cover: bamboo-lamp excerpt: Style the first letter of the first paragraph in your text, using a simple CSS selector, listed: true dateModified: 2024-08-23 --- The `::first-letter` CSS pseudo-element is used to style the **first lette...
unknown
unknown
--- title: Drop caps with pure CSS shortTitle: Drop caps language: css tags: [visual] cover: bamboo-lamp excerpt: Style the first letter of the first paragraph in your text, using a simple CSS selector, listed: true dateModified: 2024-08-23 --- The `::first-letter` CSS pseudo-element is used to style the **first lette...
--- title: Drop caps with pure CSS shortTitle: Drop caps language: css tags: [visual] cover: bamboo-lamp excerpt: Style the first letter of the first paragraph in your text, using a simple CSS selector, listed: true dateModified: 2024-08-23 --- The `::first-letter` CSS pseudo-element is used to style the **first lette...
code_snippets
026c4579-cbb9-4101-9c0a-7891d2985875
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/easing-variables.md
unknown
249f92b6-0d81-4916-bd63-ac11ea0dd4a3
0
SemanticChunker@1.0.0
5bb09a65915e8790f9c8f9396e38e13e1a29dc0dc9ed9e340335897caa6256c4
--- title: CSS easing variables language: css tags: [animation] cover: curve excerpt: Learn how to use the `cubic-bezier()` class of easing functions and create beautiful animations that stand out. listed: true dateModified: 2021-06-12 --- Most web developers use the built-in `ease`, `ease-in`, `ease-out` or `ease-in-...
unknown
unknown
--- title: CSS easing variables language: css tags: [animation] cover: curve excerpt: Learn how to use the `cubic-bezier()` class of easing functions and create beautiful animations that stand out. listed: true dateModified: 2021-06-12 --- Most web developers use the built-in `ease`, `ease-in`, `ease-out` or `ease-in-...
--- title: CSS easing variables language: css tags: [animation] cover: curve excerpt: Learn how to use the `cubic-bezier()` class of easing functions and create beautiful animations that stand out. listed: true dateModified: 2021-06-12 --- Most web developers use the built-in `ease`, `ease-in`, `ease-out` or `ease-in-...
code_snippets
4bcff09c-c2c2-4cea-847c-052cad6f2319
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/easing-variables.md
unknown
249f92b6-0d81-4916-bd63-ac11ea0dd4a3
1
SemanticChunker@1.0.0
b512cbbee1ee9d94b5cd189b1eb39f4c137e768d5a5a56a68c4adf5079238a14
```css :root { /* ease-in corresponds to cubic-bezier(0.42, 0, 1.0, 1.0) */ --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); --ease-in-ex...
unknown
unknown
```css :root { /* ease-in corresponds to cubic-bezier(0.42, 0, 1.0, 1.0) */ --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); --ease-in-ex...
```css :root { /* ease-in corresponds to cubic-bezier(0.42, 0, 1.0, 1.0) */ --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); --ease-in-ex...
code_snippets
f54cd7e8-fb17-4d88-b414-7e58b4e99af9
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/custom-scrollbar.md
unknown
2b749d54-f995-4b9f-a7e3-f07fef1dc68c
0
SemanticChunker@1.0.0
b2a478b46eda74ae42df6136bdc43b37f6c6b935954ecfccf0fc0bdad12fcf03
--- title: Create a custom scrollbar with CSS language: css tags: [visual] cover: sea-view excerpt: Customize the scrollbar style for elements with scrollable overflow, using just CSS. listed: true dateModified: 2024-09-17 --- Scrollbar styling is one of the longest-awaited features in CSS. While it's not officially s...
unknown
unknown
--- title: Create a custom scrollbar with CSS language: css tags: [visual] cover: sea-view excerpt: Customize the scrollbar style for elements with scrollable overflow, using just CSS. listed: true dateModified: 2024-09-17 --- Scrollbar styling is one of the longest-awaited features in CSS. While it's not officially s...
--- title: Create a custom scrollbar with CSS language: css tags: [visual] cover: sea-view excerpt: Customize the scrollbar style for elements with scrollable overflow, using just CSS. listed: true dateModified: 2024-09-17 --- Scrollbar styling is one of the longest-awaited features in CSS. While it's not officially s...
code_snippets
1ed6ad93-bbcd-461a-948a-ab50e3c24f37
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/dynamic-shadow.md
unknown
d6ee3dec-ab86-4701-8f2f-a82741c669cd
0
SemanticChunker@1.0.0
9ca5406bf3fcd05a791a31efcc08196ecdfe1ad118f7f969548753205ee85623
--- title: Dynamic shadow language: css tags: [visual] cover: couch-laptop excerpt: Learn how to create a shadow similar to `box-shadow`, but based on the colors of the element itself. listed: true dateModified: 2024-09-04 --- Ever wanted to create a shadow that matches the colors of the element itself? Unfortunately,...
unknown
unknown
--- title: Dynamic shadow language: css tags: [visual] cover: couch-laptop excerpt: Learn how to create a shadow similar to `box-shadow`, but based on the colors of the element itself. listed: true dateModified: 2024-09-04 --- Ever wanted to create a shadow that matches the colors of the element itself? Unfortunately,...
--- title: Dynamic shadow language: css tags: [visual] cover: couch-laptop excerpt: Learn how to create a shadow similar to `box-shadow`, but based on the colors of the element itself. listed: true dateModified: 2024-09-04 --- Ever wanted to create a shadow that matches the colors of the element itself? Unfortunately,...
code_snippets
18204391-0119-405b-a58f-4af040d4f9b9
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/details-tabbed-content.md
unknown
cf70692a-7df7-484e-ba8e-b0e229bc9d3f
1
SemanticChunker@1.0.0
b143b58d1fe71894d2a3f3e4186eddae9c11aa50216ce46a4f7092570504ed94
```css .tabs-container > details > summary { grid-row: 1; } .tabs-container > details > div { grid-column: 1 / -1; } ``` In order for the open tab to display correctly, we'll need to set the `<details>` element, along with the `::details-content` pseudo-element to `display: contents`. This essentially means that **...
unknown
unknown
```css .tabs-container > details > summary { grid-row: 1; } .tabs-container > details > div { grid-column: 1 / -1; } ``` In order for the open tab to display correctly, we'll need to set the `<details>` element, along with the `::details-content` pseudo-element to `display: contents`. This essentially means that **...
```css .tabs-container > details > summary { grid-row: 1; } .tabs-container > details > div { grid-column: 1 / -1; } ``` In order for the open tab to display correctly, we'll need to set the `<details>` element, along with the `::details-content` pseudo-element to `display: contents`. This essentially means that **...
code_snippets
e0f3cd80-8bda-4249-9323-a05e5843927b
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/details-tabbed-content.md
unknown
cf70692a-7df7-484e-ba8e-b0e229bc9d3f
0
SemanticChunker@1.0.0
7d5a41291ad4a96d7aaf38c28f9cf8e20ac1bd4f211a5a5b8049b27e09ae3f32
--- title: Creating tabbed content without JavaScript shortTitle: Details tabbed content language: css tags: [interactivity] cover: flower-portrait-6 excerpt: Leverage modern HTML and CSS capabilities to create a tabbed content component without JavaScript. listed: true dateModified: 2025-05-26 --- A few weeks back, I...
unknown
unknown
--- title: Creating tabbed content without JavaScript shortTitle: Details tabbed content language: css tags: [interactivity] cover: flower-portrait-6 excerpt: Leverage modern HTML and CSS capabilities to create a tabbed content component without JavaScript. listed: true dateModified: 2025-05-26 --- A few weeks back, I...
--- title: Creating tabbed content without JavaScript shortTitle: Details tabbed content language: css tags: [interactivity] cover: flower-portrait-6 excerpt: Leverage modern HTML and CSS capabilities to create a tabbed content component without JavaScript. listed: true dateModified: 2025-05-26 --- A few weeks back, I...
code_snippets
0aaa7583-ac12-49d1-b386-eac6b327a7a7
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/custom-checkbox-radio.md
unknown
5e5af88e-bdf6-4dc8-ba1b-d6e52b701e94
0
SemanticChunker@1.0.0
eaff2cd6bb2427809b6019ffa7a6f2dced281156b770474bf1223b2fd02968d0
--- title: Styling checkboxes and radio buttons language: css tags: [visual,animation] cover: interior-8 excerpt: Learn how to create customized and animated checkboxes and radio buttons with CSS. listed: true dateModified: 2024-09-14 --- One of the most common pain points in web development is styling checkboxes and ...
unknown
unknown
--- title: Styling checkboxes and radio buttons language: css tags: [visual,animation] cover: interior-8 excerpt: Learn how to create customized and animated checkboxes and radio buttons with CSS. listed: true dateModified: 2024-09-14 --- One of the most common pain points in web development is styling checkboxes and ...
--- title: Styling checkboxes and radio buttons language: css tags: [visual,animation] cover: interior-8 excerpt: Learn how to create customized and animated checkboxes and radio buttons with CSS. listed: true dateModified: 2024-09-14 --- One of the most common pain points in web development is styling checkboxes and ...
code_snippets
143af13b-4ac7-4bb1-8847-63bffabb7422
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/custom-checkbox-radio.md
unknown
5e5af88e-bdf6-4dc8-ba1b-d6e52b701e94
2
SemanticChunker@1.0.0
1efbc20b3f1ad59075b7a2b0f6aa9e6eeaa5019cae6b2909e3bbfc6cd14aede3
[Custom checkboxes] ```css .checkbox-symbol { position: absolute; width: 0; height: 0; pointer-events: none; user-select: none; } .checkbox-container { box-sizing: border-box; background: #ffffff; color: #222; height: 64px; display: flex; justify-content: center; align-items: center; flex-flow: row wrap;...
unknown
unknown
[Custom checkboxes] ```css .checkbox-symbol { position: absolute; width: 0; height: 0; pointer-events: none; user-select: none; } .checkbox-container { box-sizing: border-box; background: #ffffff; color: #222; height: 64px; display: flex; justify-content: center; align-items: center; flex-flow: row wrap;...
[Custom checkboxes] ```css .checkbox-symbol { position: absolute; width: 0; height: 0; pointer-events: none; user-select: none; } .checkbox-container { box-sizing: border-box; background: #ffffff; color: #222; height: 64px; display: flex; justify-content: center; align-items: center; flex-flow: row wrap;...
code_snippets
acd273ac-9e60-418d-9b62-1db004c4b6d4
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/custom-checkbox-radio.md
unknown
5e5af88e-bdf6-4dc8-ba1b-d6e52b701e94
1
SemanticChunker@1.0.0
07cd2da3bb57a933f0549fe146b564f37a86d340040adff75ad6234f9ac07379
[Custom checkboxes] ## Custom checkboxes For a custom checkbox, the best solution I've found is to use an `<svg>` element to create the checkmark symbol and insert it via the `<use>` element to create a **reusable SVG icon**. You can then create a container and use flexbox to create the appropriate layout for the ch...
unknown
unknown
[Custom checkboxes] ## Custom checkboxes For a custom checkbox, the best solution I've found is to use an `<svg>` element to create the checkmark symbol and insert it via the `<use>` element to create a **reusable SVG icon**. You can then create a container and use flexbox to create the appropriate layout for the ch...
[Custom checkboxes] ## Custom checkboxes For a custom checkbox, the best solution I've found is to use an `<svg>` element to create the checkmark symbol and insert it via the `<use>` element to create a **reusable SVG icon**. You can then create a container and use flexbox to create the appropriate layout for the ch...
code_snippets
b3cf4d7d-b8f3-45c1-adcc-73a7fee36b65
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/custom-checkbox-radio.md
unknown
5e5af88e-bdf6-4dc8-ba1b-d6e52b701e94
3
SemanticChunker@1.0.0
0dc52e2d65f26872831c4713e1a2c0fe042907d0cee1218561704dd2d88b8e1f
[Custom checkboxes > Custom radio buttons] ## Custom radio buttons For a custom radio button, you can use **pseudo-elements** to do the heavy lifting. Same as before, create a container and use flexbox to create the appropriate layout for the radio buttons. Reset the styles on the `<input>` element and use it to crea...
unknown
unknown
[Custom checkboxes > Custom radio buttons] ## Custom radio buttons For a custom radio button, you can use **pseudo-elements** to do the heavy lifting. Same as before, create a container and use flexbox to create the appropriate layout for the radio buttons. Reset the styles on the `<input>` element and use it to crea...
[Custom checkboxes > Custom radio buttons] ## Custom radio buttons For a custom radio button, you can use **pseudo-elements** to do the heavy lifting. Same as before, create a container and use flexbox to create the appropriate layout for the radio buttons. Reset the styles on the `<input>` element and use it to crea...
code_snippets
3e901a34-f2f5-4ed7-9fe0-6c280c845f1d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/current-color.md
unknown
394725ae-fee8-41ab-9f64-19701716d470
0
SemanticChunker@1.0.0
f5ec654da4d3ff4dd7b62f46d0ddb96f3417cdb788dc30cceca39366e1721c4f
--- title: The currentColor CSS keyword language: css tags: [visual] cover: picking-berries excerpt: The `currentColor` CSS keyword is a nifty alternative to custom properties for simple use cases. listed: true dateModified: 2022-11-30 --- Modern CSS supports custom properties, yet the `currentColor` keyword precedes ...
unknown
unknown
--- title: The currentColor CSS keyword language: css tags: [visual] cover: picking-berries excerpt: The `currentColor` CSS keyword is a nifty alternative to custom properties for simple use cases. listed: true dateModified: 2022-11-30 --- Modern CSS supports custom properties, yet the `currentColor` keyword precedes ...
--- title: The currentColor CSS keyword language: css tags: [visual] cover: picking-berries excerpt: The `currentColor` CSS keyword is a nifty alternative to custom properties for simple use cases. listed: true dateModified: 2022-11-30 --- Modern CSS supports custom properties, yet the `currentColor` keyword precedes ...
code_snippets
010ea6c4-59e3-4217-b699-750ac68b6833
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
3
SemanticChunker@1.0.0
340c8a779c4eef3ae6658d56c1375dab6b3ba085cf6a2af630b035dd9ba41aa7
[Visual check > Specificity] ## Specificity CSS selectors can be easily abused, causing headaches later down the line. Having clear conventions usually resolves a lot of issues, but things can slip through the cracks. Ensuring specificity is **as low as possible** and that selectors are **not too generic or overly co...
unknown
unknown
[Visual check > Specificity] ## Specificity CSS selectors can be easily abused, causing headaches later down the line. Having clear conventions usually resolves a lot of issues, but things can slip through the cracks. Ensuring specificity is **as low as possible** and that selectors are **not too generic or overly co...
[Visual check > Specificity] ## Specificity CSS selectors can be easily abused, causing headaches later down the line. Having clear conventions usually resolves a lot of issues, but things can slip through the cracks. Ensuring specificity is **as low as possible** and that selectors are **not too generic or overly co...
code_snippets
06b15096-964f-4ba1-83b0-940da278f0da
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
2
SemanticChunker@1.0.0
112de380153ac845e1a3daf5afaf67a498fde7257f83ec710098685b813132ed
[Visual check > Code style] ## Code style Your team should have set up a **linter and formatter** for CSS and, if you haven't, you should do it as soon as possible. This will help you enforce a consistent code style and make the code easier to read and maintain. Provided that's the case, you should check for **conven...
unknown
unknown
[Visual check > Code style] ## Code style Your team should have set up a **linter and formatter** for CSS and, if you haven't, you should do it as soon as possible. This will help you enforce a consistent code style and make the code easier to read and maintain. Provided that's the case, you should check for **conven...
[Visual check > Code style] ## Code style Your team should have set up a **linter and formatter** for CSS and, if you haven't, you should do it as soon as possible. This will help you enforce a consistent code style and make the code easier to read and maintain. Provided that's the case, you should check for **conven...
code_snippets
4110fce2-945e-40e3-82c6-57d206a6ea41
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
0
SemanticChunker@1.0.0
ba56b4581b2db9244f14acc1f0ecaa2770968592f873604a996333ca460621ee
--- title: How do you review CSS code in Pull Requests? shortTitle: CSS code reviews language: css tags: [webdev] cover: green-css excerpt: Reviewing CSS code is a skill that takes time to master. Here are some tips from my personal experience to help you get started. listed: true dateModified: 2023-05-21 --- Reviewin...
unknown
unknown
--- title: How do you review CSS code in Pull Requests? shortTitle: CSS code reviews language: css tags: [webdev] cover: green-css excerpt: Reviewing CSS code is a skill that takes time to master. Here are some tips from my personal experience to help you get started. listed: true dateModified: 2023-05-21 --- Reviewin...
--- title: How do you review CSS code in Pull Requests? shortTitle: CSS code reviews language: css tags: [webdev] cover: green-css excerpt: Reviewing CSS code is a skill that takes time to master. Here are some tips from my personal experience to help you get started. listed: true dateModified: 2023-05-21 --- Reviewin...
code_snippets
93f54c5b-cae9-4b8c-85e5-5e1eb32c7799
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
4
SemanticChunker@1.0.0
64a40b06ca0d8beecfca7e2c25067e84d1b0c76954770b1eee006cb58c35b79b
[Visual check > Leftovers] ## Leftovers In an ideal scenario, the Pull Request author has a clear vision of the CSS they are writing and everything works out perfectly the first time. As you know, that's rarely the case, meaning experimentation and changes will happen during development. As the code changes, some **o...
unknown
unknown
[Visual check > Leftovers] ## Leftovers In an ideal scenario, the Pull Request author has a clear vision of the CSS they are writing and everything works out perfectly the first time. As you know, that's rarely the case, meaning experimentation and changes will happen during development. As the code changes, some **o...
[Visual check > Leftovers] ## Leftovers In an ideal scenario, the Pull Request author has a clear vision of the CSS they are writing and everything works out perfectly the first time. As you know, that's rarely the case, meaning experimentation and changes will happen during development. As the code changes, some **o...
code_snippets
aec8488a-383e-4080-a279-6a9510964af2
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
1
SemanticChunker@1.0.0
f12e1475caf88f07a0d345b9209219d1d0bc566b58b8ea2bfbddb09f268ab0b0
[Visual check] ## Visual check The very first step when reviewing CSS is to check if the **result looks right**. This might mean comparing the end result to a **design mockup** or checking if every interaction behaves according to the animation principles the team has agreed upon. **Responsiveness** is also a key fac...
unknown
unknown
[Visual check] ## Visual check The very first step when reviewing CSS is to check if the **result looks right**. This might mean comparing the end result to a **design mockup** or checking if every interaction behaves according to the animation principles the team has agreed upon. **Responsiveness** is also a key fac...
[Visual check] ## Visual check The very first step when reviewing CSS is to check if the **result looks right**. This might mean comparing the end result to a **design mockup** or checking if every interaction behaves according to the animation principles the team has agreed upon. **Responsiveness** is also a key fac...
code_snippets
ca54b555-4941-47c0-9750-c66e0e7b6e45
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/code-reviews.md
unknown
449b2e63-3153-45cb-950b-fe4174e24953
5
SemanticChunker@1.0.0
f520c341a367c632b455db088b530cb63fe36052b715a15d186ec7a55abcfbff
[Visual check > Performance] ## Performance CSS performance is very often overlooked. Simple rules, deduplication and minimum overrides are some of the things that can be done to improve performance. Understandably, this sort of opportunity is **hard to spot**, but it's worth keeping an eye out for. That being said, ...
unknown
unknown
[Visual check > Performance] ## Performance CSS performance is very often overlooked. Simple rules, deduplication and minimum overrides are some of the things that can be done to improve performance. Understandably, this sort of opportunity is **hard to spot**, but it's worth keeping an eye out for. That being said, ...
[Visual check > Performance] ## Performance CSS performance is very often overlooked. Simple rules, deduplication and minimum overrides are some of the things that can be done to improve performance. Understandably, this sort of opportunity is **hard to spot**, but it's worth keeping an eye out for. That being said, ...
code_snippets
7f6036b6-442b-4236-8f3a-1cb23c8e9fd8
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/clearfix.md
unknown
b6d08ff1-d6f7-402d-852a-68eb7a1b429a
0
SemanticChunker@1.0.0
4133c45fc03feb76f8168f812fd1a007b498aa356564ef89c2aa79e901182f44
--- title: How to clear floats with a clearfix shortTitle: Clearfix language: css tags: [layout] cover: memories-of-pineapple-3 excerpt: Eliminate the need for non-semantic markup to clear floats. listed: true dateModified: 2024-08-06 --- When using the old-school `float` property to build layouts, you may encounter i...
unknown
unknown
--- title: How to clear floats with a clearfix shortTitle: Clearfix language: css tags: [layout] cover: memories-of-pineapple-3 excerpt: Eliminate the need for non-semantic markup to clear floats. listed: true dateModified: 2024-08-06 --- When using the old-school `float` property to build layouts, you may encounter i...
--- title: How to clear floats with a clearfix shortTitle: Clearfix language: css tags: [layout] cover: memories-of-pineapple-3 excerpt: Eliminate the need for non-semantic markup to clear floats. listed: true dateModified: 2024-08-06 --- When using the old-school `float` property to build layouts, you may encounter i...
code_snippets
746f4f36-9f97-4bfe-834e-853b20e317f7
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/content-aware-height-transition.md
unknown
3a5e3683-c6df-4d05-abf8-ab520aee08f4
0
SemanticChunker@1.0.0
593de1fb2252d72bd3626bd69a1ee526d7d1ff7c3ada87b1d8ef722553c7623d
--- title: Content-aware height transition language: css tags: [animation] cover: washed-ashore excerpt: Dynamically transition an element's height, based on its content. listed: true dateModified: 2024-08-24 --- As you may be aware, the `height` property cannot be transitioned from `0` to `auto` directly. Instead, we...
unknown
unknown
--- title: Content-aware height transition language: css tags: [animation] cover: washed-ashore excerpt: Dynamically transition an element's height, based on its content. listed: true dateModified: 2024-08-24 --- As you may be aware, the `height` property cannot be transitioned from `0` to `auto` directly. Instead, we...
--- title: Content-aware height transition language: css tags: [animation] cover: washed-ashore excerpt: Dynamically transition an element's height, based on its content. listed: true dateModified: 2024-08-24 --- As you may be aware, the `height` property cannot be transitioned from `0` to `auto` directly. Instead, we...
code_snippets
900509f7-cf0e-47f2-b513-57c9fd5bd801
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/content-aware-height-transition.md
unknown
3a5e3683-c6df-4d05-abf8-ab520aee08f4
1
SemanticChunker@1.0.0
ea2b10631d1ae5d48776e19b35e22eee2aef7a17a114873cb92c95f2a756dedd
```css .el { transition: max-height 0.3s; overflow: hidden; max-height: 0; } .trigger:hover > .el { max-height: var(--max-height); } ``` ```js const el = document.querySelector('.el'); const height = el.scrollHeight; el.style.setProperty('--max-height', height + 'px'); ```
unknown
unknown
```css .el { transition: max-height 0.3s; overflow: hidden; max-height: 0; } .trigger:hover > .el { max-height: var(--max-height); } ``` ```js const el = document.querySelector('.el'); const height = el.scrollHeight; el.style.setProperty('--max-height', height + 'px'); ```
```css .el { transition: max-height 0.3s; overflow: hidden; max-height: 0; } .trigger:hover > .el { max-height: var(--max-height); } ``` ```js const el = document.querySelector('.el'); const height = el.scrollHeight; el.style.setProperty('--max-height', height + 'px'); ```
code_snippets
b45d0865-b84e-43b2-bfa7-748e8aad2dec
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/footer-at-the-bottom.md
unknown
1087dde7-242b-4022-b6be-7b2a32944b57
0
SemanticChunker@1.0.0
4ad7541508d258f0b105dfc61a41a3cccc65f8c5d4e2a3dc9f47e07e779f48e4
--- title: How can I ensure the footer is always at the bottom of the page? shortTitle: Footer at the bottom language: css tags: [layout] cover: flower-shape-sunset excerpt: Make sure the footer stays at the bottom of the page, instead of floating up when the content is too short. listed: true dateModified: 2022-10-30 ...
unknown
unknown
--- title: How can I ensure the footer is always at the bottom of the page? shortTitle: Footer at the bottom language: css tags: [layout] cover: flower-shape-sunset excerpt: Make sure the footer stays at the bottom of the page, instead of floating up when the content is too short. listed: true dateModified: 2022-10-30 ...
--- title: How can I ensure the footer is always at the bottom of the page? shortTitle: Footer at the bottom language: css tags: [layout] cover: flower-shape-sunset excerpt: Make sure the footer stays at the bottom of the page, instead of floating up when the content is too short. listed: true dateModified: 2022-10-30 ...
code_snippets
dea70902-f292-4ee4-82d4-502951060ff2
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/footer-at-the-bottom.md
unknown
1087dde7-242b-4022-b6be-7b2a32944b57
3
SemanticChunker@1.0.0
7440931ce783fe1a58140dfdfe99fdd7c9c103360dd0d11d73bb7d8d6880292e
[Using Flexbox > Notes] ## Notes As you can see, both techniques are straightforward to implement. Depending on your needs one might be more suitable than the other. Generally speaking, grid is more flexible in most cases and can help if you have more complex layouts, which can include a header or sidebar.
unknown
unknown
[Using Flexbox > Notes] ## Notes As you can see, both techniques are straightforward to implement. Depending on your needs one might be more suitable than the other. Generally speaking, grid is more flexible in most cases and can help if you have more complex layouts, which can include a header or sidebar.
[Using Flexbox > Notes] ## Notes As you can see, both techniques are straightforward to implement. Depending on your needs one might be more suitable than the other. Generally speaking, grid is more flexible in most cases and can help if you have more complex layouts, which can include a header or sidebar.
code_snippets
e5b35927-7842-47d8-8eea-7bb9740b9597
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/footer-at-the-bottom.md
unknown
1087dde7-242b-4022-b6be-7b2a32944b57
1
SemanticChunker@1.0.0
4be94047226c7bd6eb8a36b10779629cd89f154c747e22c01a4358f25e73701d
[Using Flexbox] ## Using Flexbox You can use flexbox to ensure that the footer is always at the bottom of the page. This is done by setting the giving the `body` element `min-height: 100dvh`, `display: flex` and `flex-direction: column`. If you need to support older browsers, you can also add a fallback for `min-heig...
unknown
unknown
[Using Flexbox] ## Using Flexbox You can use flexbox to ensure that the footer is always at the bottom of the page. This is done by setting the giving the `body` element `min-height: 100dvh`, `display: flex` and `flex-direction: column`. If you need to support older browsers, you can also add a fallback for `min-heig...
[Using Flexbox] ## Using Flexbox You can use flexbox to ensure that the footer is always at the bottom of the page. This is done by setting the giving the `body` element `min-height: 100dvh`, `display: flex` and `flex-direction: column`. If you need to support older browsers, you can also add a fallback for `min-heig...
code_snippets
f972f07d-8da8-4d8a-ad19-21b583a34b4a
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/footer-at-the-bottom.md
unknown
1087dde7-242b-4022-b6be-7b2a32944b57
2
SemanticChunker@1.0.0
fd7a474095d0ff4daea8da1e712cadd58f3d5e6ddb651b131e1ac6c4a63d3888
[Using Flexbox > Using Grid] ## Using Grid You can also use grid in a very similar fashion. Simply swap `display: flex` for `display: grid` and `flex-direction: column` for `grid-template-rows: 1fr auto` in the `body` element. No additional attributes are needed for the `footer` element. In this case, the `fr` unit ...
unknown
unknown
[Using Flexbox > Using Grid] ## Using Grid You can also use grid in a very similar fashion. Simply swap `display: flex` for `display: grid` and `flex-direction: column` for `grid-template-rows: 1fr auto` in the `body` element. No additional attributes are needed for the `footer` element. In this case, the `fr` unit ...
[Using Flexbox > Using Grid] ## Using Grid You can also use grid in a very similar fashion. Simply swap `display: flex` for `display: grid` and `flex-direction: column` for `grid-template-rows: 1fr auto` in the `body` element. No additional attributes are needed for the `footer` element. In this case, the `fr` unit ...
code_snippets
8e5ef7ec-660f-46bf-89c2-00b061e4bebd
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/gradient-text.md
unknown
d8faaa50-e23b-4983-851c-d8a93b62618a
0
SemanticChunker@1.0.0
ec3acbca508175e4f5cf6d1e9304ddc00a7ef0e5d5449c2b41e661ecb917dbfc
--- title: Gradient text language: css tags: [visual] cover: red-berries excerpt: Modern CSS can help you create gradient text with a few lines of code. Learn how today! listed: true dateModified: 2024-09-10 --- I remember a time when gradients were tricky to use for backgrounds, let alone for styling text. But, with ...
unknown
unknown
--- title: Gradient text language: css tags: [visual] cover: red-berries excerpt: Modern CSS can help you create gradient text with a few lines of code. Learn how today! listed: true dateModified: 2024-09-10 --- I remember a time when gradients were tricky to use for backgrounds, let alone for styling text. But, with ...
--- title: Gradient text language: css tags: [visual] cover: red-berries excerpt: Modern CSS can help you create gradient text with a few lines of code. Learn how today! listed: true dateModified: 2024-09-10 --- I remember a time when gradients were tricky to use for backgrounds, let alone for styling text. But, with ...
code_snippets
a06d4f2a-8015-4f7a-9cf0-6999dde5fbeb
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/fluid-typography.md
unknown
148ad024-b11d-4b8d-aa6d-ad74f0b20ccc
0
SemanticChunker@1.0.0
1e97f35f6463b92a1b7b66636b3f9ff421f16c4608397dbec9652443237490a0
--- title: Fluid typography with CSS clamp shortTitle: Fluid typography language: css tags: [visual] cover: shell-focus excerpt: Learn how to create text that scales according to the viewport width. listed: true dateModified: 2024-08-27 --- Fluid typography is a technique that allows text to **scale according to the v...
unknown
unknown
--- title: Fluid typography with CSS clamp shortTitle: Fluid typography language: css tags: [visual] cover: shell-focus excerpt: Learn how to create text that scales according to the viewport width. listed: true dateModified: 2024-08-27 --- Fluid typography is a technique that allows text to **scale according to the v...
--- title: Fluid typography with CSS clamp shortTitle: Fluid typography language: css tags: [visual] cover: shell-focus excerpt: Learn how to create text that scales according to the viewport width. listed: true dateModified: 2024-08-27 --- Fluid typography is a technique that allows text to **scale according to the v...
code_snippets
1a7c4a9c-75eb-4299-94d0-d2008673e235
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/floating-or-sticky-list-titles.md
unknown
a3d0b1f3-5682-40a2-848d-a71e534353b2
2
SemanticChunker@1.0.0
135830518c969d1d4ff1803ec62b98b418ed4311c4fd158950972bcc7df16274
[Floating headings > Sticky headings] ## Sticky headings Similarly, for the **sticky headings**, you'll need to use `overflow-y: auto` to allow the list container (`<dl>`) to overflow vertically. Then, simply set headings (`<dt>`) to `position: sticky` and `top: 0` to create a sticky effect. You can also style the he...
unknown
unknown
[Floating headings > Sticky headings] ## Sticky headings Similarly, for the **sticky headings**, you'll need to use `overflow-y: auto` to allow the list container (`<dl>`) to overflow vertically. Then, simply set headings (`<dt>`) to `position: sticky` and `top: 0` to create a sticky effect. You can also style the he...
[Floating headings > Sticky headings] ## Sticky headings Similarly, for the **sticky headings**, you'll need to use `overflow-y: auto` to allow the list container (`<dl>`) to overflow vertically. Then, simply set headings (`<dt>`) to `position: sticky` and `top: 0` to create a sticky effect. You can also style the he...
code_snippets
28cae72a-5d2b-4ba7-9879-802f75c072fe
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/floating-or-sticky-list-titles.md
unknown
a3d0b1f3-5682-40a2-848d-a71e534353b2
1
SemanticChunker@1.0.0
a603506f5008cb4c2d5cbd4608156d8f14aa9cdaedd211bebf50a8b5b21257dc
[Floating headings] ## Floating headings In order to create a list with **floating headings for each section**, you can use `overflow-y: auto` to allow the list container to overflow vertically. Then, use `display: grid` on the inner container (`<dl>`) to create a layout with two columns. Set headings (`<dt>`) to `g...
unknown
unknown
[Floating headings] ## Floating headings In order to create a list with **floating headings for each section**, you can use `overflow-y: auto` to allow the list container to overflow vertically. Then, use `display: grid` on the inner container (`<dl>`) to create a layout with two columns. Set headings (`<dt>`) to `g...
[Floating headings] ## Floating headings In order to create a list with **floating headings for each section**, you can use `overflow-y: auto` to allow the list container to overflow vertically. Then, use `display: grid` on the inner container (`<dl>`) to create a layout with two columns. Set headings (`<dt>`) to `g...
code_snippets
3c02a545-ffec-4228-9f0b-64d679326797
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/floating-or-sticky-list-titles.md
unknown
a3d0b1f3-5682-40a2-848d-a71e534353b2
0
SemanticChunker@1.0.0
d1b19ac70ea2fd65baf939639891833627f43e881ec623a1c51a9dd64637af63
--- title: List with floating or sticky section headings language: css tags: [visual] cover: pop-of-green excerpt: Learn how to create a list with floating or sticky headings for each section. listed: true dateModified: 2024-08-29 --- Ever wanted to create a list with floating or sticky headings for each section? You ...
unknown
unknown
--- title: List with floating or sticky section headings language: css tags: [visual] cover: pop-of-green excerpt: Learn how to create a list with floating or sticky headings for each section. listed: true dateModified: 2024-08-29 --- Ever wanted to create a list with floating or sticky headings for each section? You ...
--- title: List with floating or sticky section headings language: css tags: [visual] cover: pop-of-green excerpt: Learn how to create a list with floating or sticky headings for each section. listed: true dateModified: 2024-08-29 --- Ever wanted to create a list with floating or sticky headings for each section? You ...
code_snippets
876fda99-d2b0-401f-9a47-b21fa59fd2e9
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/fullscreen.md
unknown
0051c67b-f36d-4cae-93fc-b805b487eb3f
0
SemanticChunker@1.0.0
2166512391ffa057ba51c9ad67e2ba808e80a898aed0df9c69cdf9c0a4c39159
--- title: Style elements when in fullscreen mode shortTitle: Fullscreen element styling language: css tags: [visual] cover: flower-portrait-3 excerpt: Did you know you can differentiate an element's styles when it's in fullscreen mode? Learn how to do it with this code snippet! listed: true dateModified: 2024-09-08 --...
unknown
unknown
--- title: Style elements when in fullscreen mode shortTitle: Fullscreen element styling language: css tags: [visual] cover: flower-portrait-3 excerpt: Did you know you can differentiate an element's styles when it's in fullscreen mode? Learn how to do it with this code snippet! listed: true dateModified: 2024-09-08 --...
--- title: Style elements when in fullscreen mode shortTitle: Fullscreen element styling language: css tags: [visual] cover: flower-portrait-3 excerpt: Did you know you can differentiate an element's styles when it's in fullscreen mode? Learn how to do it with this code snippet! listed: true dateModified: 2024-09-08 --...
code_snippets
ac829d38-7138-4c3c-969e-18959e7cc476
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/fit-image-in-container.md
unknown
a22ac031-d3cc-491d-bd79-532209b66cf9
0
SemanticChunker@1.0.0
dc1dcbf9324ed08f8036fa93698bd4a0cae426aa884ec271de5e8e02339dc9df
--- title: How can I fit an image in a container with CSS? shortTitle: Fit image in container language: css tags: [layout,visual] cover: succulent-3 excerpt: Fit and position an image appropriately inside its container while preserving its aspect ratio with this handy technique. listed: true dateModified: 2024-08-26 --...
unknown
unknown
--- title: How can I fit an image in a container with CSS? shortTitle: Fit image in container language: css tags: [layout,visual] cover: succulent-3 excerpt: Fit and position an image appropriately inside its container while preserving its aspect ratio with this handy technique. listed: true dateModified: 2024-08-26 --...
--- title: How can I fit an image in a container with CSS? shortTitle: Fit image in container language: css tags: [layout,visual] cover: succulent-3 excerpt: Fit and position an image appropriately inside its container while preserving its aspect ratio with this handy technique. listed: true dateModified: 2024-08-26 --...
code_snippets
4aa87f9b-aaad-4742-b5bd-6bc3968a5797
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/flexbox-cheatsheet.md
unknown
fac4097c-9b7e-49ca-93d6-c07ed3ffffc2
0
SemanticChunker@1.0.0
458f00c2cdf7fbbb29b0cea494000be30b5c3a19de7a95bfe33f676832149b4b
--- title: Flexbox Cheat Sheet language: css tags: [layout,flexbox,cheatsheet] cover: frames excerpt: Flexbox allows you to create fluid layouts easily. If you are constantly looking up how it works, this handy cheatsheet is all you need. listed: true dateModified: 2021-06-12 ---
unknown
unknown
--- title: Flexbox Cheat Sheet language: css tags: [layout,flexbox,cheatsheet] cover: frames excerpt: Flexbox allows you to create fluid layouts easily. If you are constantly looking up how it works, this handy cheatsheet is all you need. listed: true dateModified: 2021-06-12 ---
--- title: Flexbox Cheat Sheet language: css tags: [layout,flexbox,cheatsheet] cover: frames excerpt: Flexbox allows you to create fluid layouts easily. If you are constantly looking up how it works, this handy cheatsheet is all you need. listed: true dateModified: 2021-06-12 ---
code_snippets
4d0a4200-8922-4b64-afc4-267e2c567a39
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/flexbox-cheatsheet.md
unknown
fac4097c-9b7e-49ca-93d6-c07ed3ffffc2
1
SemanticChunker@1.0.0
a7d7c24a2a2ec7ef344fa564a57f732030f2f5ee10485f598218be3f5e5489f2
[Container] - `display: flex` or `display: inline-flex`: creates a flex context (or an inline flex context) for direct children of this element - `flex-direction` determines the main and cross axis for the container, valid values are: - `row` (default): horizontal, in the direction of writing (left to right for Engli...
unknown
unknown
[Container] - `display: flex` or `display: inline-flex`: creates a flex context (or an inline flex context) for direct children of this element - `flex-direction` determines the main and cross axis for the container, valid values are: - `row` (default): horizontal, in the direction of writing (left to right for Engli...
[Container] - `display: flex` or `display: inline-flex`: creates a flex context (or an inline flex context) for direct children of this element - `flex-direction` determines the main and cross axis for the container, valid values are: - `row` (default): horizontal, in the direction of writing (left to right for Engli...
code_snippets
a842004c-1166-4ef4-86ab-6a3d983e3957
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/flexbox-cheatsheet.md
unknown
fac4097c-9b7e-49ca-93d6-c07ed3ffffc2
2
SemanticChunker@1.0.0
a99a12bfb2c445a7286e8f141a683ca61ca15f254d5ab2c35a12d9de70a68aa9
[Container > Items] ## Items - `flex-grow` determines how much the item can grow if necessary - Accepts a single positive number (unitless), default value is `0` - Specifies how much of the remaining space in the flex container should be assigned to the item - The remaining space is the size of the flex container ...
unknown
unknown
[Container > Items] ## Items - `flex-grow` determines how much the item can grow if necessary - Accepts a single positive number (unitless), default value is `0` - Specifies how much of the remaining space in the flex container should be assigned to the item - The remaining space is the size of the flex container ...
[Container > Items] ## Items - `flex-grow` determines how much the item can grow if necessary - Accepts a single positive number (unitless), default value is `0` - Specifies how much of the remaining space in the flex container should be assigned to the item - The remaining space is the size of the flex container ...
code_snippets
bb3f192a-d111-45bf-98e3-88150764888a
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/evenly-distributed-children.md
unknown
5c211656-aee4-48b0-b3ae-fb27a187292b
0
SemanticChunker@1.0.0
7fa9fb3bbfa4cbdc074d6fae681cd42df2c29369761042b0e95ee6cba3e50f13
--- title: Evenly distributed children language: css tags: [layout] cover: little-bird excerpt: Evenly distribute child elements within a parent element, using Flexbox. listed: true dateModified: 2024-09-06 --- Have you ever struggled with distributing child elements evenly within a parent element? Flexbox makes it ea...
unknown
unknown
--- title: Evenly distributed children language: css tags: [layout] cover: little-bird excerpt: Evenly distribute child elements within a parent element, using Flexbox. listed: true dateModified: 2024-09-06 --- Have you ever struggled with distributing child elements evenly within a parent element? Flexbox makes it ea...
--- title: Evenly distributed children language: css tags: [layout] cover: little-bird excerpt: Evenly distribute child elements within a parent element, using Flexbox. listed: true dateModified: 2024-09-06 --- Have you ever struggled with distributing child elements evenly within a parent element? Flexbox makes it ea...
code_snippets
e268d6bf-1c3f-465a-8905-cb956a52c838
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/engraved-embossed-text.md
unknown
1b719a49-8490-4a7a-b79a-e0a41e32027f
0
SemanticChunker@1.0.0
4d27a47f5e840c209a46d2418d67af4ab42719555c72bee8165d2251289de5b1
--- title: Engraved and embossed text language: css tags: [visual] cover: memories-of-pineapple-2 excerpt: Make the text appear engraved or embossed into the background, using CSS. listed: true dateModified: 2024-09-16 --- Engraved and embossed text effects are pretty similar to each other. The difference is that the ...
unknown
unknown
--- title: Engraved and embossed text language: css tags: [visual] cover: memories-of-pineapple-2 excerpt: Make the text appear engraved or embossed into the background, using CSS. listed: true dateModified: 2024-09-16 --- Engraved and embossed text effects are pretty similar to each other. The difference is that the ...
--- title: Engraved and embossed text language: css tags: [visual] cover: memories-of-pineapple-2 excerpt: Make the text appear engraved or embossed into the background, using CSS. listed: true dateModified: 2024-09-16 --- Engraved and embossed text effects are pretty similar to each other. The difference is that the ...
code_snippets
7e4e661c-0958-4150-b66b-6c5c17c22359
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/hide-scrollbars.md
unknown
2ca26b3a-9a51-45a6-abbf-7b9aa05e86b1
0
SemanticChunker@1.0.0
edf487078ead9ae90adc5647d7f382fcf830f1db0e548213ed4c3e43dc45fdfe
--- title: Hide scroll bars on an element shortTitle: Hide scrollbars language: css tags: [visual] cover: by-the-lighthouse excerpt: Learn how to hide scrollbars on an element, while still allowing it to be scrollable. listed: true dateModified: 2024-09-07 --- Scrollbars are a common pain point when styling pages, mai...
unknown
unknown
--- title: Hide scroll bars on an element shortTitle: Hide scrollbars language: css tags: [visual] cover: by-the-lighthouse excerpt: Learn how to hide scrollbars on an element, while still allowing it to be scrollable. listed: true dateModified: 2024-09-07 --- Scrollbars are a common pain point when styling pages, mai...
--- title: Hide scroll bars on an element shortTitle: Hide scrollbars language: css tags: [visual] cover: by-the-lighthouse excerpt: Learn how to hide scrollbars on an element, while still allowing it to be scrollable. listed: true dateModified: 2024-09-07 --- Scrollbars are a common pain point when styling pages, mai...
code_snippets
66d71047-8f18-460a-8e4b-88f5a88ea62d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/inherited-properties-cheatsheet.md
unknown
7cb9fe24-b57a-4471-a383-ae12467510e5
0
SemanticChunker@1.0.0
0d0c404ac2edab7b29e9d17cba03861901f2ca02069115d39f1f6114a0a9da09
--- title: CSS inherited properties cheatsheet shortTitle: Inherited properties language: css tags: [layout,cheatsheet] cover: half-trees excerpt: A quick reference for inherited CSS properties. listed: true dateModified: 2022-11-20 --- The [CSS specification](https://www.w3.org/TR/CSS21/propidx.html) clearly states w...
unknown
unknown
--- title: CSS inherited properties cheatsheet shortTitle: Inherited properties language: css tags: [layout,cheatsheet] cover: half-trees excerpt: A quick reference for inherited CSS properties. listed: true dateModified: 2022-11-20 --- The [CSS specification](https://www.w3.org/TR/CSS21/propidx.html) clearly states w...
--- title: CSS inherited properties cheatsheet shortTitle: Inherited properties language: css tags: [layout,cheatsheet] cover: half-trees excerpt: A quick reference for inherited CSS properties. listed: true dateModified: 2022-11-20 --- The [CSS specification](https://www.w3.org/TR/CSS21/propidx.html) clearly states w...
code_snippets
58f91c1d-0316-4890-abcc-0b63fd698dbb
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-mosaic.md
unknown
26fd7ad0-ae70-49da-bc2a-f885599cbf45
0
SemanticChunker@1.0.0
ac0cfec8077a304faa79f43c34085d1ff9a48d2f7645ab441ac8c9c6375abba4
--- title: Responsive image mosaic language: css tags: [layout] cover: beach-riders excerpt: Create a responsive image mosaic, using CSS grid to create a grid layout and media queries to adjust the layout for different screen sizes. listed: true dateModified: 2024-09-03 --- CSS grid is one of the most powerful tools i...
unknown
unknown
--- title: Responsive image mosaic language: css tags: [layout] cover: beach-riders excerpt: Create a responsive image mosaic, using CSS grid to create a grid layout and media queries to adjust the layout for different screen sizes. listed: true dateModified: 2024-09-03 --- CSS grid is one of the most powerful tools i...
--- title: Responsive image mosaic language: css tags: [layout] cover: beach-riders excerpt: Create a responsive image mosaic, using CSS grid to create a grid layout and media queries to adjust the layout for different screen sizes. listed: true dateModified: 2024-09-03 --- CSS grid is one of the most powerful tools i...
code_snippets
1131253c-bf88-43bc-9491-93ba0bd86155
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-hover-rotate.md
unknown
8802cc0f-2128-4f61-a397-88f30f282cc9
0
SemanticChunker@1.0.0
efc4ef2938cef65f18db8b8445597b42c2b0ead0a923ae13d62e0f5ffce50987
--- title: Image rotate on hover language: css tags: [animation,visual] cover: succulent-1 excerpt: Zoom in and rotate your images on hover and make them stand out. listed: true dateModified: 2024-09-21 --- An extremely cool and modern effect is to rotate and zoom in on an image when hovering over it. All it takes is ...
unknown
unknown
--- title: Image rotate on hover language: css tags: [animation,visual] cover: succulent-1 excerpt: Zoom in and rotate your images on hover and make them stand out. listed: true dateModified: 2024-09-21 --- An extremely cool and modern effect is to rotate and zoom in on an image when hovering over it. All it takes is ...
--- title: Image rotate on hover language: css tags: [animation,visual] cover: succulent-1 excerpt: Zoom in and rotate your images on hover and make them stand out. listed: true dateModified: 2024-09-21 --- An extremely cool and modern effect is to rotate and zoom in on an image when hovering over it. All it takes is ...
code_snippets
60a6d6cb-c7e7-42e4-a56d-82a5a131b237
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/hover-underline-animation.md
unknown
b6ee9330-679c-4c2f-bfed-23e7ec795f4a
1
SemanticChunker@1.0.0
a785761853375eea2c2a77ab36b21f71c3a4d56c30d7fd964de118a28f1fd6a4
```css .hover-underline-animation { display: inline-block; position: relative; } .hover-underline-animation::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: 0; left: 0; background-color: #0087ca; transform-origin: bottom right; transition: transform 0.25s ea...
unknown
unknown
```css .hover-underline-animation { display: inline-block; position: relative; } .hover-underline-animation::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: 0; left: 0; background-color: #0087ca; transform-origin: bottom right; transition: transform 0.25s ea...
```css .hover-underline-animation { display: inline-block; position: relative; } .hover-underline-animation::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: 0; left: 0; background-color: #0087ca; transform-origin: bottom right; transition: transform 0.25s ea...
code_snippets
9d373f7e-ae47-4e75-9801-fd231fa60f0c
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/hover-underline-animation.md
unknown
b6ee9330-679c-4c2f-bfed-23e7ec795f4a
0
SemanticChunker@1.0.0
b2d12409434b5fab37249a3edea2dac545a34cdb8b7fca648681b28d800214b4
--- title: Hover underline animation language: css tags: [animation] cover: coffee-phone-tray-2 excerpt: Create an animated underline effect when the user hovers over some text. listed: true dateModified: 2024-08-27 --- One of the fanciest text effects I've seen is an **animated underline**, where the underline appear...
unknown
unknown
--- title: Hover underline animation language: css tags: [animation] cover: coffee-phone-tray-2 excerpt: Create an animated underline effect when the user hovers over some text. listed: true dateModified: 2024-08-27 --- One of the fanciest text effects I've seen is an **animated underline**, where the underline appear...
--- title: Hover underline animation language: css tags: [animation] cover: coffee-phone-tray-2 excerpt: Create an animated underline effect when the user hovers over some text. listed: true dateModified: 2024-08-27 --- One of the fanciest text effects I've seen is an **animated underline**, where the underline appear...
code_snippets
4e08ede4-96f8-4645-b9a1-4f0a7e209b9e
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-overlay-hover.md
unknown
bdedce2e-d70f-4864-801e-c9375482f250
1
SemanticChunker@1.0.0
9d305b2fc257d43e5c1c78729520afa93139842780fe96d0f2a9bc67be7de3f9
```css .hover-img { background-color: #000; color: #fff; display: inline-block; margin: 8px; max-width: 320px; min-width: 240px; overflow: hidden; position: relative; text-align: center; width: 100%; } .hover-img * { box-sizing: border-box; transition: all 0.45s ease; } .hover-img::before, .hover-img::aft...
unknown
unknown
```css .hover-img { background-color: #000; color: #fff; display: inline-block; margin: 8px; max-width: 320px; min-width: 240px; overflow: hidden; position: relative; text-align: center; width: 100%; } .hover-img * { box-sizing: border-box; transition: all 0.45s ease; } .hover-img::before, .hover-img::aft...
```css .hover-img { background-color: #000; color: #fff; display: inline-block; margin: 8px; max-width: 320px; min-width: 240px; overflow: hidden; position: relative; text-align: center; width: 100%; } .hover-img * { box-sizing: border-box; transition: all 0.45s ease; } .hover-img::before, .hover-img::aft...
code_snippets
53aca6a0-552b-427b-a6f2-08b0f6d4d4ce
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-overlay-hover.md
unknown
bdedce2e-d70f-4864-801e-c9375482f250
0
SemanticChunker@1.0.0
5f3bd8f82a3f184735f0e3072835d3a59277c7953770679b9ca37d1ae653c789
--- title: Image overlay on hover language: css tags: [visual,animation] cover: architectural excerpt: Learn how to display an image overlay effect on hover using CSS. listed: true dateModified: 2024-09-20 --- Creating an image overlay effect on hover is a great way to add a touch of interactivity to your website. Thi...
unknown
unknown
--- title: Image overlay on hover language: css tags: [visual,animation] cover: architectural excerpt: Learn how to display an image overlay effect on hover using CSS. listed: true dateModified: 2024-09-20 --- Creating an image overlay effect on hover is a great way to add a touch of interactivity to your website. Thi...
--- title: Image overlay on hover language: css tags: [visual,animation] cover: architectural excerpt: Learn how to display an image overlay effect on hover using CSS. listed: true dateModified: 2024-09-20 --- Creating an image overlay effect on hover is a great way to add a touch of interactivity to your website. Thi...
code_snippets
872ad8a8-a1a2-4d17-8bf3-e88483559acc
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/hover-shadow-box-animation.md
unknown
cf97d173-35f4-4035-b513-5eea08990e9c
0
SemanticChunker@1.0.0
c64f05db503def5a5845220534a227e46f0538a27f7a534950506c872e4becf2
--- title: Animate box shadow on hover language: css tags: [animation] cover: dark-cloud excerpt: Create an animated shadow box around the text when it is hovered. listed: true dateModified: 2024-09-18 --- One of material design's coolest tricks is the illusion of depth created by shadows. As part of hover interaction...
unknown
unknown
--- title: Animate box shadow on hover language: css tags: [animation] cover: dark-cloud excerpt: Create an animated shadow box around the text when it is hovered. listed: true dateModified: 2024-09-18 --- One of material design's coolest tricks is the illusion of depth created by shadows. As part of hover interaction...
--- title: Animate box shadow on hover language: css tags: [animation] cover: dark-cloud excerpt: Create an animated shadow box around the text when it is hovered. listed: true dateModified: 2024-09-18 --- One of material design's coolest tricks is the illusion of depth created by shadows. As part of hover interaction...
code_snippets
7129590c-e3cd-407d-9241-05334b2e3a86
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-hover-menu.md
unknown
9265b00a-1daf-452e-b37a-ec3e5c57828f
1
SemanticChunker@1.0.0
f13bf3765b03efb035a08a4474f13888a9f0ef1cad452cdbfa60ecddaa942bbf
```css .hover-menu { position: relative; overflow: hidden; margin: 8px; min-width: 340px; max-width: 480px; max-height: 290px; width: 100%; background: #000; text-align: center; box-sizing: border-box; } .hover-menu * { box-sizing: border-box; } .hover-menu img { position: relative; max-width: 100%; top...
unknown
unknown
```css .hover-menu { position: relative; overflow: hidden; margin: 8px; min-width: 340px; max-width: 480px; max-height: 290px; width: 100%; background: #000; text-align: center; box-sizing: border-box; } .hover-menu * { box-sizing: border-box; } .hover-menu img { position: relative; max-width: 100%; top...
```css .hover-menu { position: relative; overflow: hidden; margin: 8px; min-width: 340px; max-width: 480px; max-height: 290px; width: 100%; background: #000; text-align: center; box-sizing: border-box; } .hover-menu * { box-sizing: border-box; } .hover-menu img { position: relative; max-width: 100%; top...
code_snippets
ccc8228f-11ee-4bd0-aeaa-907e398ef35c
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-hover-menu.md
unknown
9265b00a-1daf-452e-b37a-ec3e5c57828f
0
SemanticChunker@1.0.0
7b1ca76ba5279ab1be30418dcfddd2be4f5a527c40d1979ea99becc58f42f439
--- title: Show menu on image hover language: css tags: [layout,animation] cover: compass excerpt: Display a menu overlay when the user hovers over an image. listed: true dateModified: 2024-09-24 --- To display a menu overlay when the user hovers over an image, you can use a combination of HTML and CSS techniques. Sta...
unknown
unknown
--- title: Show menu on image hover language: css tags: [layout,animation] cover: compass excerpt: Display a menu overlay when the user hovers over an image. listed: true dateModified: 2024-09-24 --- To display a menu overlay when the user hovers over an image, you can use a combination of HTML and CSS techniques. Sta...
--- title: Show menu on image hover language: css tags: [layout,animation] cover: compass excerpt: Display a menu overlay when the user hovers over an image. listed: true dateModified: 2024-09-24 --- To display a menu overlay when the user hovers over an image, you can use a combination of HTML and CSS techniques. Sta...
code_snippets
ddc187d8-ad96-4fc2-8ace-19ddc3c62da7
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/hover-additional-content.md
unknown
96b2e6a1-625f-4add-a3a6-c313c5f85fb7
0
SemanticChunker@1.0.0
380985ea4b34685641cff7767599ead5cc608939bec2bb6cf263d920a4542098
--- title: Reveal additional content on hover language: css tags: [visual] cover: dark-leaves-5 excerpt: Learn how you can create a card that displays additional content on hover. listed: true dateModified: 2024-09-23 --- Fairly often, I've found myself needing to display additional content on hover. A while ago, I st...
unknown
unknown
--- title: Reveal additional content on hover language: css tags: [visual] cover: dark-leaves-5 excerpt: Learn how you can create a card that displays additional content on hover. listed: true dateModified: 2024-09-23 --- Fairly often, I've found myself needing to display additional content on hover. A while ago, I st...
--- title: Reveal additional content on hover language: css tags: [visual] cover: dark-leaves-5 excerpt: Learn how you can create a card that displays additional content on hover. listed: true dateModified: 2024-09-23 --- Fairly often, I've found myself needing to display additional content on hover. A while ago, I st...
code_snippets
04c7eda7-0512-485a-a809-ad991048931d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
1
SemanticChunker@1.0.0
60c196a3b157602d62a25eaf2d98352147d28d434dfb9fc38949777fa5b1a170
[Image gallery with vertical scroll] ## Image gallery with vertical scroll To create a **vertically scrollable image gallery**, you will need to create a container with `display: flex` and `justify-content: center` and a set of slides with `display: flex` and `flex-direction: column`. You will also need to use `scro...
unknown
unknown
[Image gallery with vertical scroll] ## Image gallery with vertical scroll To create a **vertically scrollable image gallery**, you will need to create a container with `display: flex` and `justify-content: center` and a set of slides with `display: flex` and `flex-direction: column`. You will also need to use `scro...
[Image gallery with vertical scroll] ## Image gallery with vertical scroll To create a **vertically scrollable image gallery**, you will need to create a container with `display: flex` and `justify-content: center` and a set of slides with `display: flex` and `flex-direction: column`. You will also need to use `scro...
code_snippets
0a0a1c2d-2589-41ca-b8cf-409dcdeb8914
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
4
SemanticChunker@1.0.0
5340f3e5f35f1473aa48fe2f5c4ae8e2272a5707107533e186d06e3049d2016f
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ## Image gallery with horizontal scroll To create a **horizontally scrollable image gallery**, you will need to position its `.thumbnails` container at the bottom of the gallery, using `position: absolute`. Then, use `scroll-snap-type: x mand...
unknown
unknown
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ## Image gallery with horizontal scroll To create a **horizontally scrollable image gallery**, you will need to position its `.thumbnails` container at the bottom of the gallery, using `position: absolute`. Then, use `scroll-snap-type: x mand...
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ## Image gallery with horizontal scroll To create a **horizontally scrollable image gallery**, you will need to position its `.thumbnails` container at the bottom of the gallery, using `position: absolute`. Then, use `scroll-snap-type: x mand...
code_snippets
16567463-4888-4a3e-b61c-916efa9a913c
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
3
SemanticChunker@1.0.0
5bc018ea013674ae01133e7b49301a7e94c651c66b0ed5f9fb6555289606ac4a
[Image gallery with vertical scroll] ```js const slideGallery = document.querySelector('.slides'); const slides = slideGallery.querySelectorAll('div'); const scrollbarThumb = document.querySelector('.thumb'); const slideCount = slides.length; const slideHeight = 720; const marginTop = 16; const scrollThumb = () => { ...
unknown
unknown
[Image gallery with vertical scroll] ```js const slideGallery = document.querySelector('.slides'); const slides = slideGallery.querySelectorAll('div'); const scrollbarThumb = document.querySelector('.thumb'); const slideCount = slides.length; const slideHeight = 720; const marginTop = 16; const scrollThumb = () => { ...
[Image gallery with vertical scroll] ```js const slideGallery = document.querySelector('.slides'); const slides = slideGallery.querySelectorAll('div'); const scrollbarThumb = document.querySelector('.thumb'); const slideCount = slides.length; const slideHeight = 720; const marginTop = 16; const scrollThumb = () => { ...
code_snippets
2fe8b2f5-fcd6-4bd4-889f-dedcb70387d0
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
2
SemanticChunker@1.0.0
f919c00a52a126099f541a6a4c2a1a63a87a690d70f789353ba5cfec6639bf51
[Image gallery with vertical scroll] ```html <div class="gallery-container"> <div class="thumbnails"></div> <div class="scrollbar"> <div class="thumb"></div> </div> <div class="slides"> <div><img src="https://picsum.photos/id/1067/540/720"></div> <div><img src="https://picsum.photos/id/122/540/720"></div> <div...
unknown
unknown
[Image gallery with vertical scroll] ```html <div class="gallery-container"> <div class="thumbnails"></div> <div class="scrollbar"> <div class="thumb"></div> </div> <div class="slides"> <div><img src="https://picsum.photos/id/1067/540/720"></div> <div><img src="https://picsum.photos/id/122/540/720"></div> <div...
[Image gallery with vertical scroll] ```html <div class="gallery-container"> <div class="thumbnails"></div> <div class="scrollbar"> <div class="thumb"></div> </div> <div class="slides"> <div><img src="https://picsum.photos/id/1067/540/720"></div> <div><img src="https://picsum.photos/id/122/540/720"></div> <div...
code_snippets
65e582b1-01dc-4fea-9465-70119c99964f
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
0
SemanticChunker@1.0.0
ff14bbae48e6c7f01107c73eb94034ed2355c4e9b9fcd56832e08d885b1306f7
--- title: Image gallery with horizontal or vertical scroll shortTitle: Image gallery language: css tags: [visual,interactivity] cover: flower-portrait-5 excerpt: Create a horizontally or vertically scrollable image gallery. listed: true dateModified: 2024-09-05 --- <style> /* Style CodePen embeds to fit the demos */ ...
unknown
unknown
--- title: Image gallery with horizontal or vertical scroll shortTitle: Image gallery language: css tags: [visual,interactivity] cover: flower-portrait-5 excerpt: Create a horizontally or vertically scrollable image gallery. listed: true dateModified: 2024-09-05 --- <style> /* Style CodePen embeds to fit the demos */ ...
--- title: Image gallery with horizontal or vertical scroll shortTitle: Image gallery language: css tags: [visual,interactivity] cover: flower-portrait-5 excerpt: Create a horizontally or vertically scrollable image gallery. listed: true dateModified: 2024-09-05 --- <style> /* Style CodePen embeds to fit the demos */ ...
code_snippets
91ebb446-fe31-412d-a511-76d04c62888f
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/horizontal-vertical-gallery.md
unknown
a4a6bfdf-56e7-46f6-ac3a-2b78c612d3d2
5
SemanticChunker@1.0.0
e384a14a38d3dcd233217f88c176f80058cf634b9af0427fbbbf9d1de6125bfa
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ```css .gallery-container { position: relative; display: flex; justify-content: center; } .thumbnails { position: absolute; bottom: 8px; display: flex; flex-direction: row; gap: 6px; } .thumbnails div { width: 8px; height: 8px; cu...
unknown
unknown
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ```css .gallery-container { position: relative; display: flex; justify-content: center; } .thumbnails { position: absolute; bottom: 8px; display: flex; flex-direction: row; gap: 6px; } .thumbnails div { width: 8px; height: 8px; cu...
[Image gallery with vertical scroll > Image gallery with horizontal scroll] ```css .gallery-container { position: relative; display: flex; justify-content: center; } .thumbnails { position: absolute; bottom: 8px; display: flex; flex-direction: row; gap: 6px; } .thumbnails div { width: 8px; height: 8px; cu...
code_snippets
86e90aad-963b-46c0-a85d-c4e8a454fe96
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-text-overlay.md
unknown
ed0a19a2-af9e-46b7-a1d7-492d26b3439b
2
SemanticChunker@1.0.0
d6ceb38e66aab9e703cbebd208536b7ea8b443f9def39ae66e25cee11b5b19d7
[Using `backdrop-filter` > Using `linear-gradient`] ## Using `linear-gradient` A more traditional way to achieve a similar effect is by using a `linear-gradient()` background. This method is less flexible than `backdrop-filter`, but it works well in most cases. Depending on your needs, you can adjust the gradient's ...
unknown
unknown
[Using `backdrop-filter` > Using `linear-gradient`] ## Using `linear-gradient` A more traditional way to achieve a similar effect is by using a `linear-gradient()` background. This method is less flexible than `backdrop-filter`, but it works well in most cases. Depending on your needs, you can adjust the gradient's ...
[Using `backdrop-filter` > Using `linear-gradient`] ## Using `linear-gradient` A more traditional way to achieve a similar effect is by using a `linear-gradient()` background. This method is less flexible than `backdrop-filter`, but it works well in most cases. Depending on your needs, you can adjust the gradient's ...
code_snippets
e2e07c43-d95c-4f79-88c0-1f34da0419a8
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-text-overlay.md
unknown
ed0a19a2-af9e-46b7-a1d7-492d26b3439b
0
SemanticChunker@1.0.0
4c53f7b9f1d34bac3f3ca67cec9e5aef111a44c766a6b126ec85c720e2e27d76
--- title: Image with text overlay language: css tags: [visual] cover: icebreaker excerpt: Learn how to create an image with a text overlay using CSS. listed: true dateModified: 2024-09-08 --- Displaying text on top of images, while very common, is fairly tricky to get right. This is mainly because the text needs to b...
unknown
unknown
--- title: Image with text overlay language: css tags: [visual] cover: icebreaker excerpt: Learn how to create an image with a text overlay using CSS. listed: true dateModified: 2024-09-08 --- Displaying text on top of images, while very common, is fairly tricky to get right. This is mainly because the text needs to b...
--- title: Image with text overlay language: css tags: [visual] cover: icebreaker excerpt: Learn how to create an image with a text overlay using CSS. listed: true dateModified: 2024-09-08 --- Displaying text on top of images, while very common, is fairly tricky to get right. This is mainly because the text needs to b...
code_snippets
fef56ed7-0127-42c9-9624-058eecf00464
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/image-text-overlay.md
unknown
ed0a19a2-af9e-46b7-a1d7-492d26b3439b
1
SemanticChunker@1.0.0
adc9f327a30f7ef30b8774b46c27f3477530c35a4112bed86cec029f38a00ec0
[Using `backdrop-filter`] ## Using `backdrop-filter` The most modern technique to create a text overlay is by using the `backdrop-filter` property. This property applies a filter to the backdrop of an element, which is the area behind the element itself. For an overlay effect, you can use the `blur()` and `brightnes...
unknown
unknown
[Using `backdrop-filter`] ## Using `backdrop-filter` The most modern technique to create a text overlay is by using the `backdrop-filter` property. This property applies a filter to the backdrop of an element, which is the area behind the element itself. For an overlay effect, you can use the `blur()` and `brightnes...
[Using `backdrop-filter`] ## Using `backdrop-filter` The most modern technique to create a text overlay is by using the `backdrop-filter` property. This property applies a filter to the backdrop of an element, which is the area behind the element itself. For an overlay effect, you can use the `blur()` and `brightnes...
code_snippets
be4add07-9c50-444a-a365-38737ea81f88
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/offscreen.md
unknown
4a1f6a5d-5ef7-4345-bd59-852872d72db6
0
SemanticChunker@1.0.0
b7b92047f4c484a47c46700006c256dcad792be812d7071b08727385f60e0875
--- title: Hide element offscreen shortTitle: Offscreen language: css tags: [layout,visual] cover: succulent-2 excerpt: Hide an element completely (visually and positionally) in the DOM while still allowing it to be accessible. listed: true dateModified: 2024-09-02 --- Hiding an element with `display: none` comes with...
unknown
unknown
--- title: Hide element offscreen shortTitle: Offscreen language: css tags: [layout,visual] cover: succulent-2 excerpt: Hide an element completely (visually and positionally) in the DOM while still allowing it to be accessible. listed: true dateModified: 2024-09-02 --- Hiding an element with `display: none` comes with...
--- title: Hide element offscreen shortTitle: Offscreen language: css tags: [layout,visual] cover: succulent-2 excerpt: Hide an element completely (visually and positionally) in the DOM while still allowing it to be accessible. listed: true dateModified: 2024-09-02 --- Hiding an element with `display: none` comes with...
code_snippets
29700575-62de-495c-9632-78291b485592
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/mouse-cursor-gradient-tracking.md
unknown
9d66abbb-666c-43f7-8bd6-4b9ef2c1e964
0
SemanticChunker@1.0.0
b54792164e75d2310601f4b2e1e220799d847b7186274ef90a585e082f8d51c4
--- title: Mouse cursor gradient tracking language: css tags: [visual,interactivity] cover: tram-car excerpt: Create a hover effect where the gradient follows the mouse cursor, with CSS and a little bit of JavaScript. listed: true dateModified: 2024-08-23 --- Cursor tracking effects are cool, but they're generally tri...
unknown
unknown
--- title: Mouse cursor gradient tracking language: css tags: [visual,interactivity] cover: tram-car excerpt: Create a hover effect where the gradient follows the mouse cursor, with CSS and a little bit of JavaScript. listed: true dateModified: 2024-08-23 --- Cursor tracking effects are cool, but they're generally tri...
--- title: Mouse cursor gradient tracking language: css tags: [visual,interactivity] cover: tram-car excerpt: Create a hover effect where the gradient follows the mouse cursor, with CSS and a little bit of JavaScript. listed: true dateModified: 2024-08-23 --- Cursor tracking effects are cool, but they're generally tri...
code_snippets
2f606cba-53d5-4bba-aadf-cce0dd96f3a7
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/mouse-cursor-gradient-tracking.md
unknown
9d66abbb-666c-43f7-8bd6-4b9ef2c1e964
2
SemanticChunker@1.0.0
ccfc7c89d80812672cdf4cec8cad7f03f3f964de3eed46aced1e5f38531117d3
[HTML structure > The gradient's CSS] ## The gradient's CSS As mentioned previously, we'll use the `::before` pseudo-element to create the gradient. For this to work, we'll have to use `position: absolute` on the pseudo-element, which means the `<button>` itself needs to have `position: relative`. We'll also need to...
unknown
unknown
[HTML structure > The gradient's CSS] ## The gradient's CSS As mentioned previously, we'll use the `::before` pseudo-element to create the gradient. For this to work, we'll have to use `position: absolute` on the pseudo-element, which means the `<button>` itself needs to have `position: relative`. We'll also need to...
[HTML structure > The gradient's CSS] ## The gradient's CSS As mentioned previously, we'll use the `::before` pseudo-element to create the gradient. For this to work, we'll have to use `position: absolute` on the pseudo-element, which means the `<button>` itself needs to have `position: relative`. We'll also need to...
code_snippets
3cae4116-61e5-4fbe-b339-bacaee5ce420
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/mouse-cursor-gradient-tracking.md
unknown
9d66abbb-666c-43f7-8bd6-4b9ef2c1e964
1
SemanticChunker@1.0.0
cd3fec7c3e771925665b376b0f8511c273c6ea6e302e44810db0b1d210bb802b
[HTML structure] ## HTML structure For this example, we'll use a `<button>` element with a `<span>` child. The `<span>` will contain the **text** that will be hovered over. The `<span>` is necessary, as we will be applying the gradient to the button's `::before` **pseudo-element**. Without the `<span>`, the gradient ...
unknown
unknown
[HTML structure] ## HTML structure For this example, we'll use a `<button>` element with a `<span>` child. The `<span>` will contain the **text** that will be hovered over. The `<span>` is necessary, as we will be applying the gradient to the button's `::before` **pseudo-element**. Without the `<span>`, the gradient ...
[HTML structure] ## HTML structure For this example, we'll use a `<button>` element with a `<span>` child. The `<span>` will contain the **text** that will be hovered over. The `<span>` is necessary, as we will be applying the gradient to the button's `::before` **pseudo-element**. Without the `<span>`, the gradient ...
code_snippets
94d3d5c4-d1b2-48a5-bba4-3e95ea02e9bf
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/mouse-cursor-gradient-tracking.md
unknown
9d66abbb-666c-43f7-8bd6-4b9ef2c1e964
3
SemanticChunker@1.0.0
1edb03f356eba409f04e052e868cd2aa521728f3f8c76de5204be5b341771e2b
[HTML structure > Tracking the mouse with JavaScript] ## Tracking the mouse with JavaScript Tracking the mouse is relatively simple. We'll first use `Document.querySelector()` to select the button, and then use `EventTarget.addEventListener()` to register a handler for the `'mousemove'` event. Every time the **liste...
unknown
unknown
[HTML structure > Tracking the mouse with JavaScript] ## Tracking the mouse with JavaScript Tracking the mouse is relatively simple. We'll first use `Document.querySelector()` to select the button, and then use `EventTarget.addEventListener()` to register a handler for the `'mousemove'` event. Every time the **liste...
[HTML structure > Tracking the mouse with JavaScript] ## Tracking the mouse with JavaScript Tracking the mouse is relatively simple. We'll first use `Document.querySelector()` to select the button, and then use `EventTarget.addEventListener()` to register a handler for the `'mousemove'` event. Every time the **liste...
code_snippets
bc83dcd7-5fe8-4581-b146-5efb8ee708b9
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/navigation-list-item-hover-and-focus-effect.md
unknown
03e31840-8894-486d-84ff-0e382be21d2a
0
SemanticChunker@1.0.0
680fdc8692b1167c6aa1dcc2bd90e5f310455cca92d70a931a471482c77991b5
--- title: Navigation list item hover & focus effect language: css tags: [visual] cover: cloudy-rock-formation excerpt: Create a custom hover and focus effect for navigation items, using CSS transformations. listed: true dateModified: 2024-09-19 --- Creating a custom hover and focus effect for navigation items is a fa...
unknown
unknown
--- title: Navigation list item hover & focus effect language: css tags: [visual] cover: cloudy-rock-formation excerpt: Create a custom hover and focus effect for navigation items, using CSS transformations. listed: true dateModified: 2024-09-19 --- Creating a custom hover and focus effect for navigation items is a fa...
--- title: Navigation list item hover & focus effect language: css tags: [visual] cover: cloudy-rock-formation excerpt: Create a custom hover and focus effect for navigation items, using CSS transformations. listed: true dateModified: 2024-09-19 --- Creating a custom hover and focus effect for navigation items is a fa...
code_snippets
063b1e4f-3dfc-45d0-beb9-f929aaa83408
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/nested-border-radius.md
unknown
b28285b0-7209-4fe3-adb2-fa0b8607d8c8
2
SemanticChunker@1.0.0
2cd65b98842d59ef1bdefe67376917784d557344c2146923fbdb34508ea67662
[The formula > Example] ### Example Let's take a look at a simple CSS example. Say we want to style two nested boxes with rounded borders. The outer box has a `border-radius` of `24px` and a `padding` of `8px`. Using the previous formula, we can deduce that the inner box should have a `border-radius` of `16px`. ```c...
unknown
unknown
[The formula > Example] ### Example Let's take a look at a simple CSS example. Say we want to style two nested boxes with rounded borders. The outer box has a `border-radius` of `24px` and a `padding` of `8px`. Using the previous formula, we can deduce that the inner box should have a `border-radius` of `16px`. ```c...
[The formula > Example] ### Example Let's take a look at a simple CSS example. Say we want to style two nested boxes with rounded borders. The outer box has a `border-radius` of `24px` and a `padding` of `8px`. Using the previous formula, we can deduce that the inner box should have a `border-radius` of `16px`. ```c...
code_snippets
b0753752-974a-4923-92cb-86ec42fbe44a
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/nested-border-radius.md
unknown
b28285b0-7209-4fe3-adb2-fa0b8607d8c8
3
SemanticChunker@1.0.0
51b766345f1621fc3ca7650fdc42edc925181ca855080c0d041668b682baf47a
[The formula > CSS Variables] ## CSS Variables Using **CSS variables**, we can make this even easier. Depending on the use case, we can adapt the formula to calculate the outer radius from the inner one, or the other way around. Here's an example of how to do this: <code-tabs> ```css title="From outer radius" .oute...
unknown
unknown
[The formula > CSS Variables] ## CSS Variables Using **CSS variables**, we can make this even easier. Depending on the use case, we can adapt the formula to calculate the outer radius from the inner one, or the other way around. Here's an example of how to do this: <code-tabs> ```css title="From outer radius" .oute...
[The formula > CSS Variables] ## CSS Variables Using **CSS variables**, we can make this even easier. Depending on the use case, we can adapt the formula to calculate the outer radius from the inner one, or the other way around. Here's an example of how to do this: <code-tabs> ```css title="From outer radius" .oute...
code_snippets
b50696fd-a454-4762-a3c0-6177d899538d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/nested-border-radius.md
unknown
b28285b0-7209-4fe3-adb2-fa0b8607d8c8
1
SemanticChunker@1.0.0
42b0caabc867f79386b29232daa697a467d0aab279129420657762e8e2c54d08
[The formula] ## The formula The border radius of the outer element should be equal to the sum of the border radius of the inner element and the distance between the two elements. This can be mathematically expressed as `innerRadius + distance = outerRadius` or more tersely `R1 + D = R2`. ![Nested border radius form...
unknown
unknown
[The formula] ## The formula The border radius of the outer element should be equal to the sum of the border radius of the inner element and the distance between the two elements. This can be mathematically expressed as `innerRadius + distance = outerRadius` or more tersely `R1 + D = R2`. ![Nested border radius form...
[The formula] ## The formula The border radius of the outer element should be equal to the sum of the border radius of the inner element and the distance between the two elements. This can be mathematically expressed as `innerRadius + distance = outerRadius` or more tersely `R1 + D = R2`. ![Nested border radius form...
code_snippets
de7874b9-99d7-454b-916a-0dc2df4e8058
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/nested-border-radius.md
unknown
b28285b0-7209-4fe3-adb2-fa0b8607d8c8
0
SemanticChunker@1.0.0
5a9803d6d959fc1db9b77b318f66d1a0243fd7089b70748559460b36abac730f
--- title: Perfect nested border radius in CSS language: css tags: [visual] cover: rocky-beach-waves excerpt: Nesting elements with rounded borders can look very wrong if not done correctly. Here's a quick tip on how to do it right. listed: true dateModified: 2022-04-03 --- Nesting elements with rounded borders can lo...
unknown
unknown
--- title: Perfect nested border radius in CSS language: css tags: [visual] cover: rocky-beach-waves excerpt: Nesting elements with rounded borders can look very wrong if not done correctly. Here's a quick tip on how to do it right. listed: true dateModified: 2022-04-03 --- Nesting elements with rounded borders can lo...
--- title: Perfect nested border radius in CSS language: css tags: [visual] cover: rocky-beach-waves excerpt: Nesting elements with rounded borders can look very wrong if not done correctly. Here's a quick tip on how to do it right. listed: true dateModified: 2022-04-03 --- Nesting elements with rounded borders can lo...
code_snippets
0ed27c55-fc14-4d9f-9f24-e949e659da35
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
1
SemanticChunker@1.0.0
628ef0062036c6438234dd5583ebe1575a4045225f3d727cfb8b20543acc06bd
[Position] ### Position | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inset-inline-start` | `left` | | `inset-inline-end` | `right` | | `inset-inline` | `left` & `right` | | `inset-block-start` | `top` | | `inset-block-end` | `bottom` | | `inset-block` | `top` & `bottom` |
unknown
unknown
[Position] ### Position | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inset-inline-start` | `left` | | `inset-inline-end` | `right` | | `inset-inline` | `left` & `right` | | `inset-block-start` | `top` | | `inset-block-end` | `bottom` | | `inset-block` | `top` & `bottom` |
[Position] ### Position | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inset-inline-start` | `left` | | `inset-inline-end` | `right` | | `inset-inline` | `left` & `right` | | `inset-block-start` | `top` | | `inset-block-end` | `bottom` | | `inset-block` | `top` & `bottom` |
code_snippets
29540984-3d67-4052-b071-2b8cf0b9323d
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
3
SemanticChunker@1.0.0
a5b22eca61034a75e1148a6cc75c1f528c6a3517fbfbad57016b897609b430f0
[Position > Padding] ## Padding | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `padding-inline-start` | `padding-left` | | `padding-inline-end` | `padding-right` | | `padding-inline` | `padding-left` & `padding-right` | | `padding-block-start` | `padding-top` | | `padding-bl...
unknown
unknown
[Position > Padding] ## Padding | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `padding-inline-start` | `padding-left` | | `padding-inline-end` | `padding-right` | | `padding-inline` | `padding-left` & `padding-right` | | `padding-block-start` | `padding-top` | | `padding-bl...
[Position > Padding] ## Padding | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `padding-inline-start` | `padding-left` | | `padding-inline-end` | `padding-right` | | `padding-inline` | `padding-left` & `padding-right` | | `padding-block-start` | `padding-top` | | `padding-bl...
code_snippets
712af417-b4eb-4986-b98b-4daf6b41e556
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
5
SemanticChunker@1.0.0
310693671d587ced7e8783d564c8de10a49f28554185d345852deaa2e4a0ede5
[Position > Size] ## Size | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inline-size` | `width` | | `min-inline-size` | `min-width` | | `max-inline-size` | `max-width` | | `block-size` | `height` | | `min-block-size` | `min-height` | | `max-block-size` | `max-height` |
unknown
unknown
[Position > Size] ## Size | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inline-size` | `width` | | `min-inline-size` | `min-width` | | `max-inline-size` | `max-width` | | `block-size` | `height` | | `min-block-size` | `min-height` | | `max-block-size` | `max-height` |
[Position > Size] ## Size | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `inline-size` | `width` | | `min-inline-size` | `min-width` | | `max-inline-size` | `max-width` | | `block-size` | `height` | | `min-block-size` | `min-height` | | `max-block-size` | `max-height` |
code_snippets
758c93c8-0835-4a70-a098-2652a4c7596c
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
4
SemanticChunker@1.0.0
1f3f755f5cb0eb8bb573f17d0517a309876b931f8409edff4298b2d2b3ffac25
[Position > Border] ## Border | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `border-inline-start` | `border-left` | | `border-inline-start-color` | `border-left-color` | | `border-inline-start-style` | `border-left-color` | | `border-inline-start-width` | `border-left-color...
unknown
unknown
[Position > Border] ## Border | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `border-inline-start` | `border-left` | | `border-inline-start-color` | `border-left-color` | | `border-inline-start-style` | `border-left-color` | | `border-inline-start-width` | `border-left-color...
[Position > Border] ## Border | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `border-inline-start` | `border-left` | | `border-inline-start-color` | `border-left-color` | | `border-inline-start-style` | `border-left-color` | | `border-inline-start-width` | `border-left-color...
code_snippets
78cf6e3e-d2f6-41f0-a2e8-ad4755172603
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
6
SemanticChunker@1.0.0
e5b3b08b753e78e19f1a3ce94e2b2d2d15bfbd4811bf56a6baf133cff57893d8
[Position > Values] ## Values In addition to logical properties, there are also logical values that can be used in a variety of other CSS properties. | Logical Value | Physical Value (LTR) | |------------------|-------------------| | `start` | `left` | | `end` | `right` | | `inline-start` | `left` | | `inline-end` |...
unknown
unknown
[Position > Values] ## Values In addition to logical properties, there are also logical values that can be used in a variety of other CSS properties. | Logical Value | Physical Value (LTR) | |------------------|-------------------| | `start` | `left` | | `end` | `right` | | `inline-start` | `left` | | `inline-end` |...
[Position > Values] ## Values In addition to logical properties, there are also logical values that can be used in a variety of other CSS properties. | Logical Value | Physical Value (LTR) | |------------------|-------------------| | `start` | `left` | | `end` | `right` | | `inline-start` | `left` | | `inline-end` |...
code_snippets
db2da214-8ec5-40c5-be73-dfb97c529724
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
0
SemanticChunker@1.0.0
8858c29727ca2e360f36a66c88f74b97bae007a6fe0d14eb3d2773b2d1485923
--- title: Logical and physical CSS properties equivalents shortTitle: Logical & physical properties language: css tags: [layout] cover: succulent-8 excerpt: New to CSS logical properties? This article provides a handy map of logical properties to their physical counterparts. listed: true dateModified: 2025-05-12 --- ...
unknown
unknown
--- title: Logical and physical CSS properties equivalents shortTitle: Logical & physical properties language: css tags: [layout] cover: succulent-8 excerpt: New to CSS logical properties? This article provides a handy map of logical properties to their physical counterparts. listed: true dateModified: 2025-05-12 --- ...
--- title: Logical and physical CSS properties equivalents shortTitle: Logical & physical properties language: css tags: [layout] cover: succulent-8 excerpt: New to CSS logical properties? This article provides a handy map of logical properties to their physical counterparts. listed: true dateModified: 2025-05-12 --- ...
code_snippets
eb6a0d46-b25b-4fe8-9786-9c707c322515
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/logical-physical-properties-map.md
unknown
88e2891a-bc39-48b4-b619-a1016f9fc6e4
2
SemanticChunker@1.0.0
10af76295b9131b25222186407d311f23137de928be9a3c5a707fea5ae645708
[Position > Margin] ## Margin | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `margin-inline-start` | `margin-left` | | `margin-inline-end` | `margin-right` | | `margin-inline` | `margin-left` & `margin-right` | | `margin-block-start` | `margin-top` | | `margin-block-end` | `...
unknown
unknown
[Position > Margin] ## Margin | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `margin-inline-start` | `margin-left` | | `margin-inline-end` | `margin-right` | | `margin-inline` | `margin-left` & `margin-right` | | `margin-block-start` | `margin-top` | | `margin-block-end` | `...
[Position > Margin] ## Margin | Logical Property | Physical Property (LTR) | |------------------|-------------------| | `margin-inline-start` | `margin-left` | | `margin-inline-end` | `margin-right` | | `margin-inline` | `margin-left` & `margin-right` | | `margin-block-start` | `margin-top` | | `margin-block-end` | `...
code_snippets
26663bd4-c2c7-42e6-bd25-6fda9f6c7322
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/isometric-card.md
unknown
4f352f5d-54d6-43d9-b54d-b6a77ed15c3f
0
SemanticChunker@1.0.0
654b4c001295ad1dbeab9b84389b6c8bb7f5dc73037a7b4d08d8089347acd5fd
--- title: Isometric card language: css tags: [visual] cover: guitar-living-room excerpt: Learn how to create an isometric card using CSS. listed: true dateModified: 2024-09-10 --- The **isometric perspective** is a type of axonometric projection that represents three-dimensional objects in two dimensions. It harkens ...
unknown
unknown
--- title: Isometric card language: css tags: [visual] cover: guitar-living-room excerpt: Learn how to create an isometric card using CSS. listed: true dateModified: 2024-09-10 --- The **isometric perspective** is a type of axonometric projection that represents three-dimensional objects in two dimensions. It harkens ...
--- title: Isometric card language: css tags: [visual] cover: guitar-living-room excerpt: Learn how to create an isometric card using CSS. listed: true dateModified: 2024-09-10 --- The **isometric perspective** is a type of axonometric projection that represents three-dimensional objects in two dimensions. It harkens ...
code_snippets
36caed4b-3fa1-4522-97fb-2385ac65ca07
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/inset.md
unknown
305da8b9-ab18-4686-ac77-1bc465e2d6f5
5
SemanticChunker@1.0.0
9c4028d2deb763edbb6abe4e6793b3e5d152cc0b4b3d09d952f68922619274cc
[Practical use cases > Center an element] ### Center an element To center an element within its parent, you can use one or more values of the `inset` property to position it. If, for example, the element is half the size of its parent, you can use `inset: 25%` to center it. ```html <div class="parent"> <div class="...
unknown
unknown
[Practical use cases > Center an element] ### Center an element To center an element within its parent, you can use one or more values of the `inset` property to position it. If, for example, the element is half the size of its parent, you can use `inset: 25%` to center it. ```html <div class="parent"> <div class="...
[Practical use cases > Center an element] ### Center an element To center an element within its parent, you can use one or more values of the `inset` property to position it. If, for example, the element is half the size of its parent, you can use `inset: 25%` to center it. ```html <div class="parent"> <div class="...
code_snippets
3c221c59-8613-490f-8cf3-4762efe90e8a
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/inset.md
unknown
305da8b9-ab18-4686-ac77-1bc465e2d6f5
2
SemanticChunker@1.0.0
2c533d8819f794c382dadd3e26efd6ff049d6c06f6d392efddc33829d3132750
[What is the `inset` property? > Physical, not logical] ## Physical, not logical Although the `inset` property is defined in the [CSS Logical Properties and Values Module](https://drafts.csswg.org/css-logical-1/), it is a **physical property**, not a logical one. This means it always refers to the physical dimensions...
unknown
unknown
[What is the `inset` property? > Physical, not logical] ## Physical, not logical Although the `inset` property is defined in the [CSS Logical Properties and Values Module](https://drafts.csswg.org/css-logical-1/), it is a **physical property**, not a logical one. This means it always refers to the physical dimensions...
[What is the `inset` property? > Physical, not logical] ## Physical, not logical Although the `inset` property is defined in the [CSS Logical Properties and Values Module](https://drafts.csswg.org/css-logical-1/), it is a **physical property**, not a logical one. This means it always refers to the physical dimensions...
code_snippets
3e31105e-61b1-4fc4-83ed-a80b21f0c386
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/inset.md
unknown
305da8b9-ab18-4686-ac77-1bc465e2d6f5
4
SemanticChunker@1.0.0
fdaca6303b2ffc1db8c3e520b6762f232b58d78b3ab927ef45947fb92bf260cf
[Practical use cases > Fill a parent] ### Fill a parent If you want an element to **fill its parent container**, you can simply use `inset: 0` to set all sides to `0`. This is a concise way to set `top`, `right`, `bottom`, and `left` to `0`. ```html <div class="parent"> <div class="child"></div> </div> ``` ```css ...
unknown
unknown
[Practical use cases > Fill a parent] ### Fill a parent If you want an element to **fill its parent container**, you can simply use `inset: 0` to set all sides to `0`. This is a concise way to set `top`, `right`, `bottom`, and `left` to `0`. ```html <div class="parent"> <div class="child"></div> </div> ``` ```css ...
[Practical use cases > Fill a parent] ### Fill a parent If you want an element to **fill its parent container**, you can simply use `inset: 0` to set all sides to `0`. This is a concise way to set `top`, `right`, `bottom`, and `left` to `0`. ```html <div class="parent"> <div class="child"></div> </div> ``` ```css ...
code_snippets
4894195e-7c72-4777-8b46-23d390a19c05
unknown
file:///home/sanjeev/Downloads/depthapi/datasets/30-seconds-of-code/content/snippets/css/s/inset.md
unknown
305da8b9-ab18-4686-ac77-1bc465e2d6f5
7
SemanticChunker@1.0.0
10f6135b2e75c20ab2402b1786d10c721c92181c158db13f338ba3aee120b8ea
[What is the `inset` property? > Conclusion] ## Conclusion The `inset` property is a handy shorthand for positioning elements in CSS. By combining it with the appropriate `position` value, you can simplify your code and achieve a variety of layouts, from filling a parent container to centering elements or creating cu...
unknown
unknown
[What is the `inset` property? > Conclusion] ## Conclusion The `inset` property is a handy shorthand for positioning elements in CSS. By combining it with the appropriate `position` value, you can simplify your code and achieve a variety of layouts, from filling a parent container to centering elements or creating cu...
[What is the `inset` property? > Conclusion] ## Conclusion The `inset` property is a handy shorthand for positioning elements in CSS. By combining it with the appropriate `position` value, you can simplify your code and achieve a variety of layouts, from filling a parent container to centering elements or creating cu...
code_snippets