-
CSS variables are here for ages
posted in CSS3 on 2014-08-13 div content font size color container css width div class footer variables -
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.
read more
-
SASS: @content directive is a wonderful thing
posted in CSS3 on 2013-08-06 button font size 20px color mixin content border font size 30px 20px text decoration size 20px text block font size display block font -
I just started using SASS and I love it. A bunch of cool features, which will help me to improve my CSS coding. @content directive is one of them.
read more
-
CSS: :before and :after pseudo elements in practice
posted in CSS3 on 2013-07-26 content css block text font element width code links height -
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.
read more
-
AS3: runtime font loading (embedding)
posted in ActionScript on 2011-04-25 font field loader import flash swf public static const format font_export_name string font_file_name class -
Flash is wonderful technology and has many advantages. Before a couple of years it was really popuplar to use it for displaying fonts that are not installed on the user's machine. Flash is still powerfull tool for such kind of tasks. These days I worked on a project which had to use a lot of fonts. It wasn't possible to embed all of them so I decided to implement runtime embedding.
read more
-
PHP: add text to transparent PNG image
posted in PHP on 2011-03-10 im digit image png font originalimage php width -
Simple way to produce numbered image with PHP. The script uses PHP GD.
read more
-
Creating simple WYSIWYG editor with AS3 (Flex)
posted in ActionScript on 2011-02-11 text str function font html string editor mx var code -
There are dozen of JavaScript WYSIWYG editors available, but most of them are too complicated and a little bit buggy. From time to time I'm using my own tool to provide such kind of functionality. It accepts and exports valid html. I decided to share it with you and explain how I built it.
read more