Skip to content

Commit 63b9945

Browse files
committed
Used better space management
1 parent 30f706d commit 63b9945

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

styles.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,19 +425,21 @@ h1 {
425425
/* Side-by-side layout for single image + code */
426426
.side-by-side-layout {
427427
display: grid;
428-
grid-template-columns: minmax(400px, 45%) minmax(500px, 55%);
428+
grid-template-columns: 45% 55%;
429429
gap: 2rem;
430430
margin: 2rem 0;
431431
align-items: start;
432432
max-width: 1600px;
433433
margin-left: auto;
434434
margin-right: auto;
435+
width: 100%;
435436
}
436437

437438
.side-by-side-layout .image-container {
438439
margin: 0;
439440
height: fit-content;
440441
max-height: none;
442+
min-width: 0;
441443
}
442444

443445
.side-by-side-layout .image-container img {
@@ -447,6 +449,7 @@ h1 {
447449
.side-by-side-layout .code-section {
448450
margin: 0;
449451
height: fit-content;
452+
min-width: 0;
450453
}
451454

452455
/* Stack on medium screens */

0 commit comments

Comments
 (0)