CSS Hack

Detect Safari 3 via CSS / DOM

http://www.hedgerwow.com/360/dhtml/detect-safari3-by-js-css.html

Fix Safari 3 yourself, if you have to. :-<

DOM
Browsers
CSS Hack
CSS
Safari

Comments (7)

Permalink

Make “background-position:center center” work with PNG image for IE5.5+

I’ve done little change and make it easier to implement.

Now we can position PNG image to center for IE. :-D
http://www.hedgerwow.com/360/bugs/css-png-background.php

VML
CSS Hack
IE only
PNG

Comments (2)

Permalink

display:table

I need to implement a table-like layout for major browsers.

so here’s my quick hack.

I knew it’s not perfect, but really simple :-)
http://www.hedgerwow.com/360/dhtml/css-equal-column-layout.php

CSS Hack
CSS
layout

Comments (3)

Permalink

Set style of element:focus{} for Cross-Browsers

Déjà Vu :-)
http://www.hedgerwow.com/360/dhtml/dom-focus-style.php#

DOM
CSS Hack
CSS

Comments (1)

Permalink

Embedding Javascript into CSS on IE6

My manager asked me if it’s safe for us to dipslay user-generated CSS texts on the page, and my answer iss “No”

My friend and my co-worder Nicholas C. Zakas is against putting JavaScript into CSS based on lots of convincing reasons, too.

But in order to explain how it might work, I still need to do this with example codes which work on IE6 only.

Feel free to view the source and share this with your co-workers.

I tried to messed up the CSS to make it looks unlikely normal JavaScript or CSS.

Just have fun to do a little code review!
Example: (require IE6)
http://www.hedgerwow.com/360/dhtml/css_embed_js_for_ie6.html

JavaScript
CSS Hack
IE only

Comments (4)

Permalink

Using single image to be the background for your HTML module.

I was thinking that if I can develop the more generic HTML markups
which look simpler for developers, but also be able to present more kinds of visual design elements on the page without bloating the performance and cost.

Here’s my experiment:
http://www.hedgerwow.com/360/dhtml/css_stretched_box/demo.php#

Have fun.

CSS Hack
CSS
layout

Comments (5)

Permalink