Web Development

Web Development Latest News

css-tricks.com

We Analyzed 425,909 Favicons

This is a neat idea for a research project. The big map is fun, but the research had some tidbits in it worth looking at. The average favicon network request takes 130ms, at least from our speedy cloud instance. Fast, but not that fast, particularly for a file that nearly every website in the world …

css-tricks.com

A Handy Little System for Animated Entrances in CSS

I love little touches that make a website feel like more than just a static document. What if web content wouldn’t just “appear” when a page loaded, but instead popped, slid, faded, or spun into place? It might be a stretch to say that movements like this are always useful, though in some cases they …

css-tricks.com

Creating Generative Patterns with The CSS Paint API

The browser has long been a medium for art and design. From Lynn Fisher’s joyful A Single Div creations to Diana Smith’s staggeringly detailed CSS paintings, wildly creative, highly skilled developers have — over the years — continuously pushed web technologies to their limits and crafted innovative, inspiring visuals. CSS, however, has never really had …

css-tricks.com

Control Layout in a Multi-Directional Website

Many business websites need a multilingual setup. As with anything development-related, implementing one in an easy, efficient, and maintainable way is desirable. Designing and developing to be ready for multiple languages, whether it happens right at launch or is expected to happen at any point in the future, is smart. Changing the language and content …

css-tricks.com

On User Tracking and Industry Standards on Privacy

Inspired by Eva PenzeyMoog’s new book, Jeremy highlights the widespread user tracking situation in this industry: There was a line that really stood out to me: The idea that it’s alright to do whatever unethical thing is currently the industry norm is widespread in tech, and dangerous. It stood out to me because I had been thinking …

css-tricks.com

CSS “decorations”

A reader wrote to me the other day asking about this bit of CSS they came across in Wikipedia’s Common.css: What’s that @noflip business? That’s what they are calling a “CSS decorator” and I think that’s a fine term for it. Really they are just CSS comments, but clearly there is more going on here as …

css-tricks.com

Responsive Layouts, Fewer Media Queries

We cannot talk about web development without talking about Responsive Design. It’s just a given these days and has been for many years. Media queries are a part of Responsive Design and they aren’t going anywhere. Since the introduction of media queries (literally decades ago), CSS has evolved to the points that there are a …

webprogramiranje.org

HTML tagovi za grupisanje sadržaja

Koji su tagovi za grupisanje sadržaja? Često je potrebno grupisati delove sadržaja strane da bi mogao da se razlikuje od drugih delova (npr. meni, sadržaj, artikal…) i da bi mogli da mu definišemo specifičnu veličinu kao i poziciju na stranici kroz CSS. Grupisanje se jednostavno vrši tako što se u sadržaj smešta u okviru odgovarajućeg …

webprogramiranje.org

Osnovni HTML tagovi

Tag za naslove <h1> do <h6> Unutar ovih tagova se stavljaju nazivi naslova. Najveći (najglavniji) naslov se obeležava sa <h1>  dok se najmanji naslov obeležava sa <h6> tagom. See the Pen Naslovi u html-u by Web programiranje (@chos) on CodePen. Paragraf  tag<p> Ovaj tag se koristi da smestimo unutar njega obični tekst koji je standardne veličine i …

webprogramiranje.org

Uvod u osnove HTML-a

Šta je HTML? HTML (Hypertext Markup Language)  je deskriptivni jezik za označavanje specifičnih delova sadržaja web stranice (tzv. markup jezik). Ko koristi ove oznake sadržaja? Ove oznake sadržaja koriste browseri, jer tek kad “vide” odgovarajuću html oznaku oni znaju koji je tip sadržaja u pitanju (da li je slika ili tekst…) i šta treba da urade …

css-tricks.com

Reimagine Atomic CSS

I’m not the biggest fan of Atomic CSS myself. I don’t like all the classes. I like to express my styles in CSS because I find CSS… good. But I appreciate that a lot of people seem to like it, and it does have some clear advantages, like the fact that the generated stylesheet is …

css-tricks.com

Coding Font Game

A tournament bracket UI where you pick your favorite between two coding fonts and your choices are whittled down all the way to a final winner. A clever way to suss out your own taste and arrive at a choice.

css-tricks.com

Parallax Powered by CSS Custom Properties

Good friend Kent C. Dodds has recently dropped his new website which had a lot of work go into it. I was fortunate enough that Kent reached out a while back and asked if I could come up with some “whimsy” for the site. ✨ One of the first things that drew my attention was …

css-tricks.com

The Many Faces of VS Code in the Browser

VS Code is built from web technologies (HTML, CSS, and JavaScript), but dare I say today it’s mostly used a local app that’s installed on your machine. That’s starting to shift, though, as there has been an absolute explosion of places VS Code is becoming available to use on the web. I’d say it’s kind …

css-tricks.com

PHP Date and Time Recipes

Dealing with dates and times is one of those things that can frustrate programmers a lot. At the same time, they are fundamental to software development, used from everything from meta and how things are ordered to time-based triggers and lots in between. Dates and times are prone to errors too. Handle them incorrectly, and …

css-tricks.com

What do you get for using a search input type?

Like this: <input type=”search”> You get an extra-round-y appearance in Safari, which at one time matched the macOS look for search inputs, but not really anymore. I don’t hate the look, except… Safari totally ignores the font-size you set on it, so careful about that. Unless you smash off the round-y look with -webkit-appearance: none …

css-tricks.com

Cherry-Picking Commits in Git

In part 5 of this series, we looked at rebasing and merging. Although there are a couple of differences between git merge and git rebase, both commands have the same goal: they integrate changes from one branch into another.

css-tricks.com

The Gap (Design Engineering)

Egor Kloos describes a situation where a (purely visual) designer asks for some changes to a component. There is a misunderstanding where the (code monkey) developer implements the change exactly as requested—but really what was required was both a bug fix and a new variation to the component. Because of the skill siloing: problems.

css-tricks.com

A Clever Sticky Footer Technique

Upon hearing “sticky footer” these days, I would think most people imagine a position: sticky situation where a footer element appears fixed on the screen while in the scrolling context of some parent element. That’s not quite what I’m talking about here. “Sticky footers” were a UI concept before position: sticky existed and they mean …

css-tricks.com

Line length revisited: following the research

Mary Dyson produces nitty gritty research on the long-accepted notion that shorter line lengths are more legible than longer ones. The study finds that shorter lines do not necessarily lead to faster reading. If you’re looking for a definitive answer to use in your next design review debate, though, no dice. The big finding is …

css-tricks.com

Jamstack TV

That’s the name of Netlify’s YouTube Channel. Love that. I linked up Rich’s talk the other day, which was a part of this past JamstackConf, but now all the talks are up on there. Rich got to talk about Svelte, but there are talks on Astro, RedwoodJS, Eleventy, Vue… all the cool kids really. I’m …

css-tricks.com

Color Alpha Anywhere

In my “Different Degrees of Custom Property Usage” article, I noted a situation about colors and CSS custom properties where I went “too far” with breaking up HSL color values. Breaking every single color into its H, S, and L parts is may be a step too far. But you probably do want to split it …

css-tricks.com

Interactive Rebase: Clean up your Commit History

Interactive Rebase is the Swiss Army knife of Git commands: lots of use cases and lots of possibilities! It’s really a great addition to any developer’s tool chain, because it lets you revise your local commit history—before you share your work with the rest of the team. Let’s see what you can do with an interactive rebase and then look at some practical examples.