Home » NewsBlog » CSS

Changes on CSS Grid Layout in percentages and indefinite height

2018-09-12T03:06:32+00:00September 12th, 2018|Categories: News, Tutorials|Tags: |

This is a wonderfully nerdy deep dive into a very specific CSS change by Manuel Rego Casasnovas. Here's a bit of terminology we should know: First question is, what is an indefinite size? The simple answer is that a definite size is a size that you can calculate without taking into account the contents of [...]

Old Timey Terminal Styling

2018-09-12T03:05:21+00:00September 12th, 2018|Categories: News, Tutorials|Tags: |

I saw a little demo the other day called HTML5 Terminal. It has some functionality, but it seems like it's just kinda for fun. That said, I loved the aesthetic of it! Blurry monospace type with visible monitor lines and a glowing green background — nice! Let's re-create that, bit-by-bit. A radial gradient is perfect [...]

Jetpack’s Social Integration Features

2018-09-12T03:04:47+00:00September 12th, 2018|Categories: News, Tutorials|Tags: |

One of the many things we use Jetpack for here on CSS-Tricks is all of its features related to social media integration. For example, Jetpack can automatically share published content to different social media accounts simultaneously, add sharing buttons to your site's theme, and allow for social login on the comment form. There is even [...]

Customise radio buttons without compromising accessibility

2018-09-11T03:11:38+00:00September 11th, 2018|Categories: News, Tutorials|Tags: |

Here’s a nifty post by Chen Hui Jing where she walks us through her process for making radio buttons accessible via keyboard. I particularly enjoyed this bit where she discusses the four options that are available to us to hide the radio input and replace them with a selection of cards that act like toggles [...]

Creating sliding effects using sticky positioning

2018-09-11T03:11:21+00:00September 11th, 2018|Categories: News, Tutorials|Tags: |

Sticky elements are predominantly used for keeping something shown on the screen throughout scrolling. As cool as that is, we can also hide elements in the same way! Here’s a typical (um) sticky situation: See the Pen position:sticky (CSS) by Preethi Sam (@rpsthecoder) on CodePen. Sticky elements (position: sticky;) are very similar to fixed elements [...]

Interactive Introduction to CSS Houdini

2018-09-11T03:11:17+00:00September 11th, 2018|Categories: News, Tutorials|Tags: |

This is a great explanatory microsite by Sam Richard. CSS Houdini will let authors tap in to the actual CSS engine, finally allowing us to extend CSS, and do so at CSS speeds. Much like Service Workers are a low-level JavaScript API for the browser's cache, Houdini introduces low-level JavaScript APIs for the browser's render [...]

“Killing the URL”

2018-09-08T03:05:16+00:00September 8th, 2018|Categories: News, Tutorials|Tags: |

It was Safari who first started hiding the complete URL. Here's what CSS-Tricks looks like even when you're on an article page by default in Safari: The full URL path is hidden.You can only fix it (YES, FIX IT) by checking "Show full website address" in settings. Preferences > AdvancedWe've already damaged the sanctity of [...]

Shadow DOM in Ionic

2018-09-08T03:05:14+00:00September 8th, 2018|Categories: News, Tutorials|Tags: |

Mike Hartington glows about how good and useful the Shadow DOM is: [Shadow DOM is] actually built on two simple ideas, isolation and location. Need to create a bit of DOM that is isolated from the global scope? Shadow DOM is here to help. Need to specify the exact location of a piece of DOM? [...]