Archive for the ‘css’ Category

Sjoerd Visscher’s revelation

Sunday, February 17th, 2008

Via Sam Ruby, we are pointed to this in the comments at Intertwingly:

Btw, if you want CSS rules to apply to unknown elements in IE, you just have to do document.createElement(elementName). This somehow lets the CSS engine know that elements with that name exist.

This could be a viable strategy for using HTML5 and styling the results in IE, even if IE does not support certain tags.

Old Navy website is broken too

Sunday, September 30th, 2007

Well, maybe “broken” is too strong a word. The CSS failed to load. Which happens sometimes. Which is part of why semantic markup is important. How much does the user experience survive the lack of style sheets? This from the front page of Old Navy:

oldnavybroken.jpg

Just curious, but does anyone know some common reasons why the CSS files might fail to load?

Also curious about the marketing. The front page of the site is aimed entirely at women. Do women buy clothes online more than men?

The 2nd paragraph from page 114 of “The Zen Of CSS Design”

Thursday, September 13th, 2007

An email I just sent my co-workers:

Please read the 2nd paragraph from page 114 of “The Zen Of CSS Design”. It’s a good point to remember.

I fixed the problem on account.php. The videos and audios were positioning themselves relative to “trackList” instead of relative to “your_audio_video”. I fixed it by adding:

position:relative;

to the div with the id of “your_audio_video”.

For an interior element to position itself relative to the element that encloses it, that enclosing element must have one of these lines:

position:relative;

position:absolute;