Notes

CSS

Security notes, SOC lab write-ups and tested code by Mahir Faysal, a SOC Level 1 cybersecurity learner in Bangladesh, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

CSS Text Overflow Ellipsis: 1 Line, 2 Lines and Flexbox
Coding tips

CSS Text Overflow Ellipsis: 1 Line, 2 Lines and Flexbox

One-line ellipsis needs white-space: nowrap, overflow: hidden and text-overflow: ellipsis. Tested fixes for flexbox, grid and tables, plus 2- and 3-line truncation with line-clamp.

October 6, 2026 · 15 min read · 133 views

Dark Mode Toggle With JavaScript and localStorage
Coding tips

Dark Mode Toggle With JavaScript and localStorage

A dark mode toggle that remembers the choice in localStorage, follows the system setting on a first visit and never flashes white on reload. Tested code.

October 4, 2026 · 8 min read · 109 views

CSS Flexbox vs Grid: When to Use Each
Coding tips

CSS Flexbox vs Grid: When to Use Each

CSS Flexbox vs Grid explained simply: Flexbox for one direction, Grid for rows and columns, with nav, card grid, page layout and dashboard examples to copy.

October 2, 2026 · 8 min read · 120 views

CSS Position Explained: Absolute vs Relative
Coding tips

CSS Position Explained: Absolute vs Relative

CSS position explained: static, relative, absolute, fixed and sticky, why absolute needs a relative parent, why sticky stops working, and how z-index stacks.

October 2, 2026 · 8 min read · 452 views

0%