Here is a crossbrowser JavaScript function for getting CSS property values from DOM elements. The function $style requires the specification of two arguments:
$style(ElementId, CssProperty);
ElementId – the ID of the element from which we will extract CSS property values;
CssProperty – the CSS property we will extract from the element, for example – “background-color”;
The function $style:
function $style(ElementId, [...]
Archive for August, 2008
$style – Get Any CSS Property Value of an Object
Posted in CSS, JavaScript, Tips and Tricks, XHTML, tagged computed styles, css manipulation, current style, get computed style, get css property value, JavaScript on August 26, 2008 | 2 Comments »
Emulating border-color: transparent in Internet Explorer 6
Posted in CSS, CSS Hacks, Tips and Tricks, tagged border-color: transparent in IE 6, border-color: transparent in Internet Explorer 6, css hack, transparent border in IE6, transparent border in Internet Explorer 6 on August 24, 2008 | 3 Comments »
Fortunately, Internet Explorer 7 supports border-color: transparent, but still, there are hardcore IE6 users and it seems that they will never update their browsers.
This post is targetted to the developers that care and dare to make their websites crossbrowser.
Thanks to a less known Interner Explorer CSS filter, the transparent border in Internet Explorer 6 can [...]
Rounded Corners Panel.JS 1.0 Released
Posted in CSS, JavaScript, Rounded CSS Corners, Rounded Corners Panel.JS, tagged antialised css rounded corners, dither color css corners, nifty corners, rounded corners css, rounded corners with css, rounded corners without images, spiffy corners on August 23, 2008 | Leave a Comment »
Experience the power of CSS with that cool widget!
Create rounded corners with any dimensions without additional images or sophisticated CSS and JavaScript coding. Rounded Corners Panel.JS does all this for you. You may choose between three types of rounded corner radius, you are allowed to specify dither (i.e. antialias) color, so your rounded corners’ edges [...]
An Exotic CSS Hack for Internet Explorer
Posted in CSS, CSS Hacks, Tips and Tricks, tagged css hack, IE css hack, IE6 css hack, IE7 css hack, Internet Explorer CSS hack on August 19, 2008 | 2 Comments »
Here is a less known and rather exotic CSS hack, visible for Internet Explorer based on a rendering bug. Unfortunately, it is visible both in versions 6 and 7, but still it can be useful as a last resort for styling.
And here it comes:
h1
{
color: green;
.color: red;
}
Internet Explorer 6 and 7 will render <h1>…</h1> in red, while [...]