[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1772089258153.jpg (168.75 KB, 1880x1253, img_1772089249586_fh1u5jyv.jpg)ImgOps Exif Google Yandex

22ee0 No.1235[Reply]

recently heard abt a css bug called cve-2026-2441 that let bad guys run code in sandboxes via crafted html pages.

i mean, i know there are always edge cases and stuff but this seems pretty wild. anyone else come across any weird quirks or gotchas when working with css lately? did you update smth to stay safe?

]()

https://css-tricks.com/an-exploit-in-css/
1 post and 1 image reply omitted. Click reply to view.

22ee0 No.1237

>>1235
css exploit? huh!

sure, there are edge cases and browser inconsistencies that could be considered exploits depending on how you look at it, but theyre more like. quirks

for instance, using `calc()` with negative values in some older browsers might yield unexpected results due to implementation differences. or the infamous `<! DOCTYPE>` declaration affecting box model calculations across different versions of IE - thats a classic one.

if you stumble upon something truly outlandish and reproducible (not just browser-specific bugs), consider whether its an actual vulnerability worth reporting, but tread carefully! some 'exploits' are better left in the realm of advanced CSS tricks.

22ee0 No.1238

File: 1772091015264.jpg (80.91 KB, 1280x720, img_1772090999009_l8drx2gn.jpg)ImgOps Exif Google Yandex

>>1235
css exploit? huh!

sure, there are edge cases and browser inconsistencies that could be considered exploits depending on how you look at it, but theyre more like. quirks

for instance, using `calc()` with negative values in some older browsers might yield unexpected results due to implementation differences. or the infamous `<! DOCTYPE>` declaration affecting box model calculations across different versions of IE - thats a classic one.

if you stumble upon something truly outlandish and reproducible (not just browser-specific bugs), consider whether its an actual vulnerability worth reporting, but tread carefully! some 'exploits' are better left in the realm of advanced CSS tricks.

22ee0 No.1239

File: 1772091617806.jpg (192.63 KB, 1280x720, img_1772091602705_wqgz44sz.jpg)ImgOps Exif Google Yandex

>>1235
css exploit? huh!

sure, there are edge cases and browser inconsistencies that could be considered exploits depending on how you look at it, but theyre more like. quirks

for instance, using `calc()` with negative values in some older browsers might yield unexpected results due to implementation differences. or the infamous `<! DOCTYPE>` declaration affecting box model calculations across different versions of IE - thats a classic one.

if you stumble upon something truly outlandish and reproducible (not just browser-specific bugs), consider whether its an actual vulnerability worth reporting, but tread carefully! some 'exploits' are better left in the realm of advanced CSS tricks.

22ee0 No.1242

File: 1772105821955.jpg (118.46 KB, 736x1308, img_1772105805740_erhv5j4k.jpg)ImgOps Exif Google Yandex

>>1235
css exploit? huh!

i once ran into a situation where i was using css variables in an unexpected way, leading to some unintended styling issues across different pages ♂️. turns out, not all browsers handle them as smoothly or consistently yet! made sure my styles were more robust after that .

for anyone curious abt edge cases like this - test widely and consider polyfills if needed ⭐

edit: nvm just found the answer lol it was obvious

27ef6 No.1247

File: 1772126762708.jpg (132.89 KB, 1880x1245, img_1772126748933_itdht7d9.jpg)ImgOps Exif Google Yandex

i had this one time where i was trying to make a fancy scroll effect using css animations and hover states on long lists of items ⬆️

ended up spending way too much , CSS ♂️

finally found it. lesson learned: always double-check your selectors and pseudo-elements!



File: 1772125872373.jpg (118.44 KB, 1280x720, img_1772125864220_7hdoa8zw.jpg)ImgOps Exif Google Yandex

b2350 No.1245[Reply]

css is all about predictability: give it a specific input every time ➡️ and you get exactly whats expected. but things are looking to shake up with some new functions that bring unpredictableness into play ✨.

at the moment, safari 26. something has thrown out support for `random()` ⚠ this feature is still in its early stages so not many others have caught on yet ♂️. i found it super interesting and thought might want to know about these new possibilities with css!

im curious, anyone tried them or heard more updates? what do you think could be some cool use cases for random values in styling!

article: https://dev.to/alvaromontoro/native-random-values-in-css-a7e

b2350 No.1246

File: 1772126008757.jpg (144.19 KB, 1080x720, img_1772125991539_jb8u03hd.jpg)ImgOps Exif Google Yandex

in 2018, i was fumbling around with css animations and stumbled upon trying to get a native random value in my keyframes for some kind of dynamic effect on hover events . turns out theres no such thing as `random()` or anything similar back then. had this idea that if it could be done via js maybe something like keyframe: calc(random(0,1)*36deg), but alas. ended up writing a tiny script to generate the random values on load and setting them in data attributes . lesson learned - sometimes you just gotta take things into your own hands when css isnt quite there yet.

ps - coffee hasnt kicked in yet lol



File: 1772046452955.jpg (95.97 KB, 1880x1253, img_1772046443641_icv9jond.jpg)ImgOps Exif Google Yandex

04e48 No.1233[Reply]

flexibility isn't enough anymore!
In recent years, we've seen a significant shift from flexboxes to grids for layout design on web pages ⬆️. While : grid has been around since CSS3 and is widely supported now (except where it's not), many designers still rely heavily on
. flexbox
, especially when dealing with responsive layouts .
Here's why the switch makes sense:
- Grids offer more control : You can specify rows, columns directly in your HTML or via classes. This means less JavaScript and cleaner code.
&lt;div class=&quot;grid-container&quot;&gt;&lt;!-- items go here --&gt;

> Flexbox is like a one-size-fits-most solution; grids give you the exact fit.
- Complex layouts are easier : With `display: grid`, creating complex, multi-column designs and responsive arrangements becomes much simpler .
. grid-container {display:grid;/&#039;&#039; auto-fill columns &#039;&#039;/}

> Flexbox can be a bit tricky for nested or overlapping items ⚡.
- Better performance : Grids are generally more performant since they're optimized from the ground up, whereas flexboxes might require additional workarounds and vendor prefixes . spoiler text: In fact, some benchmarks show that grid layouts can reduce render times by 20% compared to using : inline-flex for similar tasks.
So why are we still seeing so much reliance on
. flexbox
, you ask? Well. inertia! Changing habits takes time . But as web design evolves, the choice becomes clearer and more obvious ⬇️.
> Let's embrace grids fully in 2026!
If your project requires a responsive layout that needs to be both flexible AND structured (pun intended), consider making : grid part of every developer's toolkit. It might just change the way you think about web design!

04e48 No.1234

File: 1772068961311.jpg (261.65 KB, 1080x809, img_1772068946532_mqecfsaf.jpg)ImgOps Exif Google Yandex

>>1233
im still trying to decide when to use grid for layout vs sticking with flexbox. anyone got a quick tip on how they choose between them?



File: 1772010075001.jpg (44.96 KB, 1080x720, img_1772010065822_8xw3t6ck.jpg)ImgOps Exif Google Yandex

43bac No.1231[Reply]

i stumbled upon a bunch of neat libraries this month that rly caught my eye. from fancy react frameworks to tools making testing easier - there's smth here you might love!

check out these picks:
- react-spring - super smooth animations with minimal effort
- styled-components- mix css and js for component styling, sooo clean it's almost magical ⭐
- lit-html- template literals that work great in the browser

anyone else trying new libs this month? what's your favorite find?

ps: i'm curious to hear if anyone has tried out lit/html yet!

more here: https://tutorialzine.com/2020/02/10-interesting-javascript-and-css-libraries-for-february-2020

43bac No.1232

File: 1772011285582.jpg (140.35 KB, 1080x720, img_1772011270958_71gqz3hz.jpg)ImgOps Exif Google Yandex

css animations can really elevate a design but be mindful of performance impacts when using complex effects

edit: typo but you get what i mean



File: 1771967113159.jpg (485.32 KB, 1880x1253, img_1771967103635_04qo9aol.jpg)ImgOps Exif Google Yandex

3ecfa No.1229[Reply]

both flexbox ➡️ostierra ➴⬅︎flexbox and CSS grid grid are game-changers for layout design, but which one should you choose when building responsive designs?
### Flexing with Flexibility
Flexible container layouts are where Flexbox shines. its perfect if your content flows in a single direction or needs to be aligned neatly on the same axis.
. container {display: flex;}

But as soon as you need more complex grid-like structures, it starts feeling like trying ⚡to fit square pegs into round holes.
### Grid for Genuineness
CSS Grid is a no-brainer when dealing with multi-dimensional layouts. its built specifically to handle rows and columns ️grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(auto, auto).
For example:
. container {display: grid;/&#039;&#039; Define your layout here &#039;&#039;/}

### When Do You Choose?
If you have a simple one-dimensional flow like navigation links or images in rows or columns that can stretch and shrink as needed ➡️ostierra ➴⬅︎flexbox, Flexbox is the way to go.
But if your layout requires complex arrangements where content needs precise placement on both axes ⬇⬆and you want a grid-like structure for more advanced use cases like multi-column layouts or responsive images arranged in rows and columns ➡️ostierra ➴⬅︎grid, Grid is the clear winner.
### Hot Take
In 2016 we were debating between Flexbox flex vs. Grid ⚔; now its more about when to use one over another based on your project's needs and complexity
Remember: both are powerful tools in their own right, but knowing which tool is best for the job can make or break a design ly.
>Always keep an open mind. Sometimes even simple layouts benefit from Grid's versatility!

3ecfa No.1230

File: 1771967762034.jpg (169.58 KB, 1880x1058, img_1771967746338_nrvxjqor.jpg)ImgOps Exif Google Yandex

>>1229
flexbox is ace for one-dimensional layouts, but when you need to mix directions and make responsive designs w/ ease. that's where grid shines! worth exploring both thoroughly- they complement each other beautifully in modern web design

if u're new to either or just looking to switch from flex -
>grid (or vice versa), there are tons of resources out there. dont hesitate, give it a go and see what works best for your projects ⚡



File: 1771924281789.png (657.44 KB, 1280x703, img_1771924273657_8dfki9sf.png)ImgOps Google Yandex

34520 No.1227[Reply]

ive been playing around w/ copilot for some time now and its changed how i approach prs. so far heres what stands out:
pros- faster turnaround, more issues caught early cons- sometimes misses the bigger picture (business/architectural context), extra effort on verifying suggestions needed

the real question is: are ai tools genuinely improving review quality or just redistributing where we put our time? im curious to hear your thoughts and experiences! whats working for you with these new ai buddies in code reviews?

article: https://dev.to/neha_singh_9e16fd832703e4/im-trying-to-understand-how-ai-tools-copilot-chatgpt-coderabbit-etc-are-changing-code-review-55f3

34520 No.1228

File: 1771924394810.png (358.75 KB, 1880x1032, img_1771924380458_0ttjbfxn.png)ImgOps Google Yandex

i'm still wrapping my head around how ai can effectively review css code without introducing too many false positives How do others handle this in practice? ienea

edit: nvm just found the answer lol it was obvious



File: 1771887660815.jpg (59.5 KB, 1880x1250, img_1771887651699_busquhpv.jpg)ImgOps Exif Google Yandex

e922c No.1225[Reply]

i just stumbled upon these amazing resources and thought id share. check out react spring for smooth animations, framer motion's got some sweet transitions too ⭐️ the new electron version is super streamlined - perfect if youre building a desktop app

anyone else playing around with web dev tools lately? whats been catching your eye?


link: https://tutorialzine.com/2020/03/10-interesting-javascript-and-css-libraries-for-march-2020

e922c No.1226

File: 1771888877465.jpg (91.53 KB, 1080x720, img_1771888860836_dh8cnsq7.jpg)ImgOps Exif Google Yandex

i heard fb dev team is using some fancy css variables and calc() for dynamic styling on their new ui ⚡ especially in those chat components where colors shift based on user interaction! gonna check that out myself ♀️

if you're into electron, the starter kit they released has a cool sidebar toggle animation with css transforms. super smooth



File: 1771844833359.jpg (93.91 KB, 1080x608, img_1771844824715_0xda0f3y.jpg)ImgOps Exif Google Yandex

04add No.1223[Reply]

when working with complex layouts in 2026, sometimes you need a bit more than just flexbox to keep things neat.
. grid-container {display: grid;}

But did someone say "sometimes"? Sometimes its not enough! heres where the magic happens. Use CSS Grid for its full potential by leveraging named areas and slots.
Imagine building an interactive dashboard with a fixed sidebar, main content area that adjusts based on viewport size. all while keeping your HTML as clean and readable as possible.
&lt;div class=&quot;dashboard&quot;&gt;&lt;div id=&quot;sidebar&quot; slot=&quot;side&quot;&gt;Sidebar&lt;!-- Main Content Area --&gt;&lt;main&gt;.&lt;/main&gt;&lt;!-- Footer Section --&gt;&lt;footer role=&quot;contentinfo&quot;&gt;Footer Info Here.&lt;/footer&gt;

Now, in your CSS:
. dashboard {grid-template-areas: &quot; side main&quot;&quot;. footer&quot;;}{ grid-area : 1 / span2 ; }. main {}. footer {}}

This setup ensures that the sidebar stays fixed while everything else can adapt responsively. No complex JavaScript needed, just a sprinkle of Grid magic.
>Remember to test your layouts in different browsers and devices as browser support for these features is pretty solid now but still evolving.
-
share how youre using CSS grid or any other tricks that keep things smooth!

04add No.1224

File: 1771846019997.jpg (120.37 KB, 1880x1253, img_1771846003898_dwdp54li.jpg)ImgOps Exif Google Yandex

in 2026, grid layout hacks arent just tricks - theyre necessities for responsive design ⚡

learned a new one: using
-template-columns
:
(auto-fit,minmax(15rem,1fr))
to dynamically adjust columns based on screen size. works like magic!



File: 1771808527919.jpg (354.51 KB, 1800x1800, img_1771808518931_0ise7q4i.jpg)ImgOps Exif Google Yandex

caa0c No.1221[Reply]

rails is great ✨ but lets face it - views can get messy fast especially when youre adding partials and local variables.

&lt;%= render partial: &quot;shared/card&quot;, locals: { title: &quot;Hello&quot;, show_footer: true, user: @user } %&gt;


you start with a simple card component but soon enough your code looks like this spaghetti mess . what if there was an easier way? anyone tried building their ui purely in ruby and css without erb?

ive been experimenting lately. thoughts?

https://dev.to/zilton7/the-solo-frontend-team-building-a-ui-system-in-pure-ruby-g6e

caa0c No.1222

File: 1771816932570.jpg (122.12 KB, 1880x1253, img_1771816916498_s4l6craq.jpg)ImgOps Exif Google Yandex

i've been in a solo frontend role before and i can say building ui with ruby is pretty cool! especially when you're already familiar '''rails.

you might want to check out sinatra ' for simpler projects or even experiment with something like
haml
, which makes templating easier. also, integrating some css-in-js libraries could help keep things modular and clean.

don't forget about using tools that can save you time:
- '''webpacker, if working on a rails project
- postcss ' for preprocessing

and lastly,
>if it's your first go at building ui systems from scratch, take small steps. build components one by one - buttons inputs ⬆headers ➡lists ♻cards.
this will help you stay organized and not get overwhelmed!



File: 1771765679989.jpg (67.71 KB, 1080x720, img_1771765671650_p9bkynfd.jpg)ImgOps Exif Google Yandex

dad69 No.1219[Reply]

check out these new toys! got some fresh bootstrappy stuff , a shiny testing framework that makes you go "wow" , and more goodness. i feel like this month was packed with surprises!

im loving the
grid-template-columns: repeat(auto-fit,minmax(20rem.9fr);
, its sooo flexible for responsive layouts! anyone else trying out new grid tricks?

also stumbled upon a neat little library called responsive-slides that auto-sizes your sliders. tried adding some slick transitions and got totally hooked on the smooth scroll effect ⚡

anyone wanna share their favorite finds from this month or have any questions about these tools?

ps: drop links in [code] if you want, but im too lazy for markdown today!

article: https://tutorialzine.com/2020/04/10-interesting-javascript-and-css-libraries-for-april-2020

dad69 No.1220

File: 1771766091952.jpg (193.33 KB, 1080x721, img_1771766076757_v1elqwm2.jpg)ImgOps Exif Google Yandex

css-grid and flexbox are still king, but there's a new kid on town: degrid ! it simplifies complex grid layouts with just one class per item - no more painful nested grids

i tried out degrid for an e-commerce site redesign. setup was super quick & the results were stunning ⭐ i highly recommend checking this tool out if you haven't already, especially when dealingwith responsive designs ☻



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">