Category Archives: css

CSS default position value

position:absolute? Recently I was working on a problem where some DOM elements inherited the absolute position from their ancestors. Well this is pretty rare, but however it happens from time to time. If you’re wandering, as I was, how to … Continue reading

Posted in css | Tagged , , | Leave a comment

What if your site doesn’t use all of the CSS selectors?

Why my site doesn’t use all of the CSS however? Well someone can ask how you can have CSS that contains selectors that aren’t used on the site. There are two reasons to happen and most of the cases both … Continue reading

Posted in css, javascript | Tagged , , , , , , , , | Leave a comment

cssText and how it can be very very useful

We all know, or at least all of us reading every new coming news on the web development sky, that making your browser reflow and repaint is expensive. Actually it is quite expensive. What I’m about to say comes under … Continue reading

Posted in css, javascript, micro tutorial | Tagged , , , | Leave a comment

jQuery CSS functions. Part 2 – width() and height()

$.width() and $.height() Related to the previous several posts jQuery comes with two functions that help you dynamically get the width and height of an element. Have you ever asked about the width of an element in pixels which is … Continue reading

Posted in css, javascript, micro tutorial | Tagged , , , , | Leave a comment

jQuery CSS functions. Part 1 – offset()

What are jQuery CSS functions? Well these are function which help you modify different CSS properties with JavaScript. You know you can do that in “pure” evangelistic JS, but normally every library comes with its own bunch of functions that … Continue reading

Posted in css, javascript, micro tutorial | Tagged , , , | 3 Comments