Search

Nalezeno "Images": 354

“the closest thing web standards have to a golden rule”


The internet's own Mat Marquis plucks this choice quote from the HTML Design Principals spec: In case of conflict, consider users over authors over implementors over specifiers over theoretical purity. And then he applies the idea to putting images on websites in 2019. Direct Link to Article...

SVG Filter Effects: Duotone Images with <feComponentTransfer>


This fourth article in our SVG Filter series will show you how to use feComponentTransfer to create a duotone filter effect. SVG Filter Effects: Duotone Images with &lt;feComponentTransfer&gt; was written by Sara Soueidan and published on Codrops

How do you figure?


Scott O'Hara digs into the &#60;figure&#62; and &#60;figcaption&#62; elements. Gotta love a good ol' HTML deep dive. I use these on just about every blog post here on CSS-Tricks, and as I've suspected, I've basically been doing it wrong forever. My original thinking was that a figcaption was just...

Using Artificial Intelligence to Generate Alt Text on Images


Web developers and content editors alike often forget or ignore one of the most important parts of making a website accessible and SEO performant: image alt​ text. You know, that seemingly small image attribute that describes an image: ​​​&#60;img src="/cute/sloth/image.jpg" alt="A brown baby sloth...

JavaScript Labels


No matter how long you&#8217;ve been a JavaScript developer, there will always be language features that you didn&#8217;t know about until you saw them in a fringe piece of code. Your reaction generally is a bit like: One of those features I see developers quizically trying to figure out...

Colorized Brackets for IDE


Coders treat their text editors and IDE&#8217;s like fragile beings, and for good reason: we spend a ton of time in them and having our tweaks and extensions can make us incredibly productive for our personal workflows. I always love hearing about what extensions and workflows other developers...

Git Checkout at Previous Timeframe


In the past I&#8217;ve blogged about checking out branches created on a specific date as well as sorting git branches by date, but one frequent usage of git and dates is checking out a commit at a given time in the past. For example, I often say &#8220;Weird, this feature was working a month...

Background Sync with Service Workers


Service workers have been having a moment. In March 2018, iOS Safari began including service workers &#8212; so all major browsers at this point support offline options. And this is more important than ever &#8212; 20% of adults in the United States are without Internet at home, leaving these...

Jetpack


My favorite way to think about Jetpack is that it's a WordPress plugin that brings a whole heap of features to your site. I've documented the features that we use here on CSS-Tricks, which isn't even all of them (yet). Some of Jetpack features are essentially connecting it to the powers...

How to Change the WordPress Admin Login Logo


There are numerous content management systems that thrive these days but none are as prolific as WordPress. Every client wants the ability to change their website at a moment&#8217;s notice and they want to do it themselves, and again, WordPress is the best fit for that. You fit the client with...

How to Change the WordPress Media Upload Directory


One thing I&#8217;ve always missed about the &#8220;old&#8221; way of web development was the simplicity of FTP. No deploy scripts, no fuss: simple drag and drop of files and the files are there. I&#8217;ve used FTP for assets on this blog for over a decade but I&#8217;m finally ready to be lazy...

Goals for 2019


Every turn of the year is a new opportunity to start over, set goals, and renew optimism that time can heal wounds and drive us to change and achieve. I did really well with my 2018 goals: I started a fun podcast with TrackJS&#8217; Todd Gardener I found my passion again by joining Mozilla&#8217;s...

How to Send an iMessage From Command Line


As somewhat of a recluse, believe me when I say that text messages, instant messenger, and iMessage have relieved me of loads of anxiety and wasted time with short, meaningless voice chat. It&#8217;s been a decade since these communication types have become popular so we&#8217;ve moved on from...

How to Add a User Stylesheet in Firefox


While many like to complain about CSS these days, it&#8217;s important to remember how amazing CSS is; the CSS language is: easy to learn easy to read easy to write simple to understand Web developers and designers alike love that CSS allows us to take text/media and present it in a beautiful...

Nested Destructuring


Destructuring in JavaScript can initially feel confusing but the truth is that destructuring can make your code a bit more logical and straight forward. Destructuring does look a bit more complex when you&#8217;re looking for a property several objects deep, so let&#8217;s have a look at how to...

Force Download with JavaScript


Force download scripts have been an important part of internet usability for a long time.&#160; I can attest to that by the number of times I&#8217;ve implemented this feature on the server side and the popularity of my PHP Force Download post, even to this day.&#160; With the web world having...

CSS Ellipsis Beginning of String


I was incredibly happy when CSS text-overflow: ellipsis (married with fixed width and overflow: hidden was introduced to the CSS spec and browsers; the feature allowed us to stop trying to marry JavaScript width calculation with string width calculation and truncation.  CSS ellipsis was also very...

JavaScript waitForever


Writing mochitests for new features in DevTools can be difficult and time-consuming.  There are so many elements interacting in an async manner that I oftentimes find myself using the debugger to debug the debugger!  In the case where it&#8217;s unclear what interaction isn&#8217;t working...

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