veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#css

57 posts50 participants0 posts today
Terence Eden<p>I have an infuriating <a href="https://mastodon.social/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> question I can't answer.</p><p>I have an <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> table with a sticky &lt;thead&gt;. It all works beautifully.</p><p>But when the viewport is narrow, there's no horizontal scrolling. I can't find a way to make an overflow-x work while *also* having a sticky header.</p><p>Any thoughts?</p><p>Code demo - <a href="https://codepen.io/edent/pen/VYvmaMM" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codepen.io/edent/pen/VYvmaMM</span><span class="invisible"></span></a></p>
Jens Oliver Meiert<p>From the archives:</p><p>How to Order CSS Selectors:</p><p><a href="https://meiert.com/blog/how-to-order-css-selectors/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">meiert.com/blog/how-to-order-c</span><span class="invisible">ss-selectors/</span></a></p><p><a href="https://mas.to/tags/webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webdev</span></a> <a href="https://mas.to/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://mas.to/tags/selectors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>selectors</span></a> <a href="https://mas.to/tags/sorting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sorting</span></a></p>
CSS Basics<p>Why I’m Writing Pure <a href="https://hachyderm.io/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> &amp; <a href="https://hachyderm.io/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> in 2025: "Imagine a web page that loads instantly, deploys effortlessly, and never needs a security update. I’m using pure HTML and CSS to accomplish all that and to build things in a fraction of the time." <a href="https://joeldare.com/why-im-writing-pure-html-and-css-in-2025" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">joeldare.com/why-im-writing-pu</span><span class="invisible">re-html-and-css-in-2025</span></a></p>

I criticize web devs for making really bone-headed decisions on web sites, and they do, but maybe I need to cut them some slack if they're as confused and exhausted as I am from the battle to get their code displayed the way they intended.

I use CSS to set the max-width of a <td> to 100px and the browser's developer tools tells me there are no other overriding styles yet the computed size is 101.890625px. ChatGPT's suggestions don't help. Is there a sacrifice I need to make to the #CSS gods?

Continued thread

There's my bug report: github.com/parcel-bundler/parc

Turns out that when #CSS or #JavaScript syntax gets more and more complicated, minifiers have a hard time keeping up to date. What a surprise!

Just uninstall your minifiers. Remember: removing the source of a problem is always more efficient than building a solution ☝️

🐛 bug report Parcel outputs invalid CSS in production mode when a declaration with a var() (and possibly other function values) appears between two nested rules. Example: div { table { color: lime;...
GitHubCSS: Nested rules lead to invalid output in production mode · Issue #10203 · parcel-bundler/parcelBy SirPepe

🌗 7.css - 模擬 Windows 7 UI 的 CSS 框架
➤ 重現經典 Windows 7 風格
khang-nd.github.io/7.css/
7.css 是一個 CSS 框架,旨在構建外觀類似於 Windows 7 的使用者介面元件。它基於 XP.css 的 GUI 基礎架構,而 XP.css 又是 98.css 的擴展。此框架強調使用語意化的 HTML,並允許使用者覆蓋樣式以滿足需求。它不包含任何 JavaScript,僅通過 CSS 對 HTML 進行樣式化,因此與任何前端框架兼容。同時,也提供了作用域樣式和樹狀抖動等功能,以提高靈活性和效率。
+ 這真是個好主意,很多時候我需要重現老舊的界面,這簡化了我的工作。
+ 不使用 JavaScript 真的太棒了,可以避免很多潛在的問題。
#CSS 框架 #UI 設計 #Windows 7

khang-nd.github.io7.cssA design system for building faithful recreations of the Windows 7 UI.

Exercising a bit of early-2000s #web design freedom by whipping up a little page to invite friends to play my new #pinball machine when it finally arrives. It's fun not using even the simplest build step and just manually writing #HTML and #css

I can see where things would get cumbersome if I were trying to maintain consistency across many pages, but having no build tools to wrestle with is a joy.

I continue to push what's possible with native HTML/CSS and PWA's in general. I think JavaScript (especially React) and Tailwind (more here: colton.dev/blog/tailwind-is-th) have made for a terrible developer experience and want to get as far away from this as possible (plus, let's reduce the bloat and improve page performance).

Responsive video also fits in this mindset (let's get away from Google!) and like that more people are writing about this: kooslooijesteijn.net/blog/resp

colton.devTailwind is the Worst of All WorldsApparently this horse hasn't been beaten enough.