Experimental browser for the Atmosphere
How to Use attr() in CSS for Columns, Colors, and Font-Size You can pluck off values from HTML attributes that actually have types now, so if you put data-font-size="2.2rem" on an element you could actually, ya know, honor that.
Feb 26, 2025, 8:39 AM
{ "uri": "at://did:plc:pghd3xlo6nlsuxof4lwdxdup/app.bsky.feed.post/3lj2y2p6izn2o", "cid": "bafyreibpl3qpw2rcf2yao7nc6ztabc5vxeothy45of3ybul2c2ka4dazbu", "value": { "text": "How to Use attr() in CSS for Columns, Colors, and Font-Size \n\nYou can pluck off values from HTML attributes that actually have types now, so if you put data-font-size=\"2.2rem\" on an element you could actually, ya know, honor that.", "$type": "app.bsky.feed.post", "embed": { "$type": "app.bsky.embed.external", "external": { "uri": "https://frontendmasters.com/blog/how-to-use-attr-in-css-for-columns-colors-and-font-size", "thumb": { "$type": "blob", "ref": { "$link": "bafkreidliwuujondy3lnsyrmcgkg4j3uueo3hobl3anjnsowcqkfimckny" }, "mimeType": "image/jpeg", "size": 73065 }, "title": "How to Use attr() in CSS for Columns, Colors, and Font-Size", "description": "You can pluck off values from HTML attributes that actually have types now, so if you put data-font-size=" } }, "createdAt": "2025-02-26T08:39:00.602Z" } }