# CSS3
-
CSS3 _ 2026-02-01
CSS-only animated accordion with dynamic content height
CSS became more powerful over the years, allowing developers to create interactive components without relying on JavaScript. One such component is an animated accordion that smoothly expands and collapses content sections. In this article, we'll explore how to create a CSS-only animated accordion that dynamically adjusts its height based on the content inside.
-
CSS3 _ 2023-09-16
A short introduction to CSS nesting
-
CSS3 _ 2015-09-17
CSSSteal - Chrome extension that extracts CSS
We had to update some of our old pages adding new elements. This means mixing old and new code. Placing HTML markup and JavaScript in legacy pages is not that difficult. Yes, it brings some issues but they are easily solvable. However, the CSS is a whole new story. That’s why I did CSSSteal. It helps me extract the needed styles.
-
CSS3 _ 2014-08-13
CSS variables are here for ages
Every front-end developer that starts reading about CSS preprocessors thinks “Oh, finally variables in CSS". Indeed, the ability to create and use variables in CSS makes our code much more flexible. However, I think that there is no need to use a preprocessor to create flexible stylesheets.
-
CSS3 _ 2014-02-12
Simple, good looking separator made with pure CSS
-
CSS3 _ 2013-09-27
Select drop-down broken under Firefox
Firefox has problems if you use
-
CSS3 _ 2013-08-29
SASS: interpolation in a name of variable
I just answered on that question at StackOverflow. That's actually asked a lot last few months.
-
CSS3 _ 2013-08-27
The power of inherit or how to animate pseudo elements
Luckily, I have time to watch screencasts from various conferences. Last few weeks I'm watching videos from Fronteers2012. They are all great and it worths checking out. However, there is something which I found really interesting. It's about animating pseudo elements.
-
CSS3 _ 2013-08-22
CSS: common use cases and architecture at VarnaLab
Yesterday I made a talk about CSS common use cases and architecture. Floats, pseudo clases, animations, OOCSS, SMACSS, Atomic design and tons of other interesting stuff.
-
CSS3 _ 2013-08-20
SASS mixin for grid generation
The mixins in SASS are really helpful. Here is something really short which I just start using. It's a mixin which I apply on the grid's container.
-
CSS3 _ 2013-08-16
CSS: Understanding first-child, last-child and nth-child
I like the CSS only solutions. Very often I need to select a specific DOM element. Sure I could add a new class, but it is always nice if I can do that inside my stylesheets. It just looks better and keeps my HTML markup clean. first-child, last-child and nth-child are made exactly for this purpose.
-
CSS3 _ 2013-08-15
SASS mixins covering media queries
-
CSS3 _ 2013-08-13
Two handy and advanced SASS features and their limitations
I really like SASS and I use it a lot in my daily job. There are tons of useful features. However there are some things which I want to do, but I can't. There are limitation in the syntax and missing functionalities. Sharing what I found, I want to know if you meet those limitation and how you get around them.
-
CSS3 _ 2013-08-09
SASS: universal mixin for box model properties
I'm currently working on OrganicCSS - a micro framework based on atomic CSS concept. I'm thinking a lot for name conventions, classes and of course mixins. I decided to combine three mixins in a file called _box-model.scss. They will provide a shortcuts for margin, padding and border properties.
-
CSS3 _ 2013-08-06
SASS: @content directive is a wonderful thing
-
CSS3 _ 2013-08-05
SASS: differences between mixins, extends and placeholders
I used LESS a lot. These days I decided to try SASS and to be honest it's a better choice for CSS preprocessor. It just gives me more functionalities and better control on my code. There are few instruments for architecting your CSS logic - @mixin, @extend and placeholders. However there are differences between them and specific use cases.
-
CSS3 _ 2013-08-03
CSS Challenge #2: Layouting
The first challenge, was something which I was thinking about a lot these days. The next one is actually a well known common task, but it is still difficult. In every project we have different types of layouts. Of course there are some patterns. The idea today is to implement them with pure CSS.
-
CSS3 _ 2013-08-01
CSS Challenge #1: expand and center an image
That's first of (I hope) many posts with such an idea. Problems solved with pure CSS. No JavaScript.
-
CSS3 _ 2013-07-26
CSS: :before and :after pseudo elements in practice
By definition :before and :after are CSS pseudo elements. You can use them to insert something before or after the content of an element. There are some great articles giving the basics, but I wanted to write down a blog post for the real use cases. Or, at least, to show what I'm using them for.
-
CSS3 _ 2013-06-16
Get computed css styles for a given element
I just found out that it is possible with pure javascript. It's supported in all the major browsers. Find more information here.
-
CSS3 _ 2013-05-22
CSS: The background color and overlapping rows
The goal is to achieve a background of the text inside an inline element.
-
CSS3 _ 2013-05-14
CSS: transition from pixels to auto
As you may know I just updated my web site. There are five columns which nicely slide up and down on a lower resolution. In other words, accordion-like navigation. Initially I made this effect with JavaScript. But there was a bug and I decided to use pure CSS. I wanted to define everything in CSS classes which to add or remove. The idea wasn't bad except the fact that every column contains dynamic content and I wasn't able to set the exact height when the column is slided down.
-
CSS3 _ 2013-04-08
CSS: using float property
float property is one of those CSS rules which are somehow difficult to understand. Before a couple of days I had a problem with floating divs. I solved it and decided to write an article about the solution. The article also covers some basics about floating.