raziel , to Random stuff
@raziel@sakurajima.social avatar

How the heck do you maintain semantic with ?

css , to Random stuff
@css@front-end.social avatar

💡 CSS Tip!

How much code is needed to create a Sparkle shape? ✨
Only one gradient and you can easily get the border-only variation.

Demo: https://codepen.io/t_afif/full/eYaYzxX via :codepen: @codepen

Online Version: https://css-tip.com/sparkle-shape/

Two sparkle shapes. The second one is a border-only variation.

mobileatom , to Random stuff
@mobileatom@flipboard.com avatar

Why use Web Components over traditional DOM manipulation? #WebComponents #HTML #JavaScript

https://gomakethings.com/why-use-web-components-over-traditional-dom-manipulation/?utm_source=flipboard&utm_medium=activitypub

Posted into Coding is Living @coding-is-living-mobileatom

css , to Random stuff
@css@front-end.social avatar

💡CSS Tip!

Using the new relative color syntax, you can easily extract the R,G,B channels of any color and use them as separate colors.

Useful when you want to do some color manipulation.

Online Version: https://css-tip.com/rgb-channels/

#CSS #HTML

youronlyone , to Asia
@youronlyone@c.im avatar

I. HTML Ruby

II. CSS Ruby

phillip , to Random stuff
@phillip@social.tchncs.de avatar

With the popover API available in all browsers for a while now, we can easily build entirely accessible, even animated popovers for all use cases just with HTML and CSS. As an example I have created a codepen with a simple search button that opens a search field.
https://codepen.io/philliproth/pen/OJYLyMp

vantablack , to Random stuff
@vantablack@cyberpunk.lol avatar

FUN FACT: you can use emojis as favicons!!!

just do this

<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🖤</text></svg>"><br></br>

teacherbuknoy , to Random stuff
@teacherbuknoy@masto.ai avatar

I have a question for and peeps out there. Suppose that I made a post on Mastodon that includes a photo. But the language I use for the post is Tagalog, my native language. Should I write my alt text in Tagalog or English?

The post can be translated by whatever translation service Mastodon uses. But I'm not entirely sure that the alt text would also be translated, especially since I remember that attributes are not translated, unless that's old news.

aardrian , to Random stuff
@aardrian@toot.cafe avatar

I think &lt;seleclist&gt; is dead? Not clear to me why, but I don’t have time to wade in.

But now Chrome is proposing allowing any element within &lt;select&gt; and I am… wary:
https://github.com/whatwg/html/issues/10310

I get that I don’t grok the work that goes into the UA rendering engine, but I am very worried about the impact given it is not even addressed in the proposal.

Corrections to my assertions welcome.

css , to Random stuff
@css@front-end.social avatar

💡 CSS Tip!

Use modern CSS to add a status indicator to your avatar using less than 10 CSS declarations and without extra elements.
✅ Only the image element
✅ No pseudo-element
✅ Transparent gap
✅ Optimized with CSS variables

Demo: https://codepen.io/t_afif/full/yLrWeQP via :codepen: @codepen

Online Version: https://css-tip.com/status-indicator/

three rounded images with a status indicator at the bottom right

css OP ,
@css@front-end.social avatar

We can easily change the position of the indicator by rearranging the margin/padding values.

Demo: https://codepen.io/t_afif/full/rNbgoyz via :codepen: @codepen

four images with status indicator

scy , to Command-line interface
@scy@chaos.social avatar

I need to convert to and I'm looking for a tool to do that.

The output should

• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)

or . Alternatively, what's a really configurable prettifier?

:BoostOK:

teacherbuknoy , to Genshin Impact
@teacherbuknoy@masto.ai avatar

So... I did a little side project. I missed translating stuff so I figured I'd translate my favorite song "La Vaguelette" into . As I explain in the commentary that follows, I took a little bit of artistic liberty to make the translation fit the melody (spoiler alert: I also included a demo of me singing the song after translating it).

https://francisrub.io/literature/ang-munting-alon/

teacherbuknoy OP ,
@teacherbuknoy@masto.ai avatar

A cool thing that challenged me while making this is I got to use the <ruby> element in to create a French-Tagalog interlinear translation where I translate each French word/phrase into Tagalog. I got the idea from this Bible translation where it had on it side-by-side the original Greek text of the New Testament, interlined with a literal English translation, and another English translation that would make sense.

ALT
  • Reply
  • Loading...
  • tixie , to Random stuff
    @tixie@guerilla.studio avatar

    Quick PSA for everyone excitedly using the popover API now it's in all 3 engines. Add an empty pointerdown event listener to your body element, else popover lightdismiss doesn't work on iOS Safari.

    See https://bugs.webkit.org/show_bug.cgi?id=267688

    Via @Lukew

    davidbisset , to Random stuff
    @davidbisset@phpc.social avatar

    How to think about responsive images. https://danburzo.ro/responsive-images-html/

    css , to Random stuff
    @css@front-end.social avatar

    💡 CSS Tip!

    Create a ⭐️ Star shape using clip-path and only 5 points (instead of 10).

    Three different codes to create the same shape
    1⃣ Precise version using math
    2⃣ Calculated version without math
    3⃣ Simplified version with easier coordinates values

    Demo: https://codepen.io/t_afif/full/jORvmKG via :codepen: @codepen

    Online Version: https://css-tip.com/star-shape/

    three star shapes

    css OP ,
    @css@front-end.social avatar

    The difference between the versions is that the first and second ones consider the inscribed circle of a square to draw the different points while the third one considers the smallest rectangle that can contain the star shape.

    vanilla , to Random stuff
    @vanilla@social.spicyweb.dev avatar

    Unpopular (maybe?) opinion:

    The way to get better at & isn't to build complex web applications with frontend frameworks. The way to get better at HTML & CSS is to write content with HTML & CSS.

    • Build a blog.
    • Build a landing page.
    • Build a report.
    • Build a portfolio.
    • Build lists.

    Most web applications are simply content + forms in a fancy UI trench coat. 😅 They just tend to be far more "componetized" — making it much harder to grok the underlying semantics at first.

    css , to Random stuff
    @css@front-end.social avatar

    Do you want to get started with creating CSS Shapes? Check my latest article @Verpex

    https://verpex.com/blog/website-tips/css-tricks-to-master-the-clip-path-property

    A beginner-friendly tutorial to start using the clip-path polygon() with a few tricks to help you create shapes faster and easier.

    I should have written this since a while but it's never too later.

    Edent , to Random stuff
    @Edent@mastodon.social avatar

    🆕 blog! “Use CSS to boost the font size of emoji with no extra markup”

    I want to make emoji bigger than the text that surrounds them. At my age and eyesight, it can be difficult to tell the difference between 😃, 😄, and 😊 when they are as small as the text. Is there a way to use CSS to increase the font size of specific characters without having […]

    👀 Read more: https://shkspr.mobi/blog/2024/04/use-css-to-boost-the-font-size-of-emoji-with-no-extra-markup/

    thomasapowell , to Random stuff
    @thomasapowell@fosstodon.org avatar

    If your go to assumption when making a component is just is some emitted slop and the component is the most important part as opposed to the HTML and other core web tech the browser uses as being the ultimate point of the component you simply are doing web dev wrong and working against the platform.

    Some days I feel most of the“modern” community acts like Chemists who think atoms are passé and compounds are all that matter.

    Edent , to Random stuff
    @Edent@mastodon.social avatar

    A poll for all my
    friends!

    Suppose you have comments on your website. They all have a valid <time> element in them.

    Comments are displayed in a nested list, with the oldest first.

    Should you use:

    css , to Random stuff
    @css@front-end.social avatar

    💡 CSS Tip!

    Use modern CSS to create those famous rounded tabs with inner curves.
    ✅ No extra element & No pseudo-element
    ✅ Less than 10 CSS declarations to get the three variations
    ✅ One variable to control the curvature
    ✅ Works with gradient coloration

    Demo: https://codepen.io/t_afif/pen/JjVpPmr via :codepen: @codepen

    Online Version: https://css-tip.com/rounded-tab/

    three variations of rounded tab

    css , to Random stuff
    @css@front-end.social avatar

    💡 CSS Tip!

    Use the round() function and create a fluid typography with a discrete function instead of a continuous one.

    Define the step and get precise values within a specific range. Very useful if you have some calculation based on the font-size like using the em unit. No more rounding issue!

    Demo: https://codepen.io/t_afif/pen/RwOxLNQ via :codepen: @codepen

    Online Version: https://css-tip.com/fluid-typography/

    fasnix , to Thunderbird
    @fasnix@dresden.network avatar

    This is so f***** up!! O_O

    Be aware when you receive HTML emails (who doesn't?)!

    https://gruene.social/@weddige/112190338668045392





  • All
  • Subscribed
  • Moderated
  • Favorites
  • supersentai
  • WatchParties
  • Rutgers
  • jeremy
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • loren
  • steinbach
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • kamenrider
  • Mordhau
  • WarhammerFantasy
  • itdept
  • AgeRegression
  • mauerstrassenwetten
  • MidnightClan
  • space_engine
  • learnviet
  • bjj
  • Teensy
  • khanate
  • electropalaeography
  • neondivide
  • fandic
  • All magazines