10 Big Ol’ 2027 Black Friday Deals


A big ol' roundup of Black Friday deals on front-end courses from the best independent publishers and educators in the business. 10 Big Ol’ 2027 Black Friday Deals originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well

Beyond 12 Columns: Designing Layouts With Personality


Too many websites look alike. They use familiar layouts, repeat the same patterns, and often leave little impression once you’ve moved on. Andy Clarke explores how understanding a company’s story can lead to more distinctive designs, using modular and compound grids to create layouts with...

How to Save WebP as JPG and Check the Export


I made two files with .jpg names for this example. One was a real JPEG; the other still contained WebP data. Here is how to save WebP as JPG properly: open it in GIMP, choose File → Export As, enter a fresh .jpg filename and confirm JPEG. Then open the exported copy. The file with […] The...

Font Pairing Guide: Which Fonts Go Together in CSS?


My test line was “Fix it on Saturday”. At the same size, three bold faces needed roughly 473, 512 and 611 pixels to set those words. That difference is why I start a font pairing guide with the page’s actual text. For this repair cafe notice, Georgia above Arial is my starting pair. You...

How to Add Canonical Tag in HTML: Examples and Checks


To add a canonical tag in HTML, put <link rel="canonical" href="https://example.com/preferred-page/"> inside the document’s <head>. Replace the example address with the full URL you want search engines to treat as the preferred version. Add the same self-referencing link on that...

How to Change Font Size in HTML With CSS


When I was putting together the example for this guide, “Your collection is ready” was the line I wanted to draw attention to. I left the order number instructions alone and changed the message from the page’s usual 1rem to 1.25rem. That’s how to change font size in HTML without resizing the whole...

CSS-Tricks, Version 20


Things look a little different around here? I hope so because we just pushed a site redesign! Here's everything new with the 20th(!!) version of CSS-Tricks. CSS-Tricks, Version 20 originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well

What Is Span in HTML? Examples, CSS and Common Mistakes


In HTML, span is a generic container for a word, phrase or other phrasing content. It gives you somewhere to attach a class, a language attribute or a script hook when no more meaningful element fits. By default, a span stays inline with the surrounding text. It does not make that text bold...

How to Change Image Size in HTML Without Stretching


Here is how to change image size in HTML. Give the image a CSS width, let its height adjust automatically and cap the width at the size of its column. Keep the original proportions in the HTML dimension attributes. The example below takes a 1200 by 800 drawing and gives it a 600-pixel display...

STRG: S3-Compatible, AI-Native Cloud Storage (Sponsored)


Asset management is big business within the web world. The larger that our web apps grow, the larger the number of assets and their file size naturally increases. With that increase, you need to worry about increasing costs and vendor complexity! Luckily I’ve discovered a service which fixes...

How to Open HTML File on iPhone: Files, Viewers and Safari


The name at the bottom of the email is report.html. You can see a few lines of markup when you tap it, though the email promised a report. For anyone trying to figure out how to open an HTML file on iPhone, the quickest check is to save the attachment to Files and open that […] The post...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace