Add this blog to Del.icio.us, Digg or Furl | Create Watchlist for this blog

Archive for June, 2008

CSS Selectors - Short Reference

Monday, June 23rd, 2008

This is a “short as possible” reference for CSS selector syntax. Intended audience should be very familiar with XHTML, DOM and CSS Styling.

Basics

Type selector
Select all HTML elements of a special type.
Example: em {font-weight: bold;}
Class selector
Select all elements with a given class.
Example: .classname {font-weight: normal;}
ID selector
Select the one element with a given id.
Example: #idname {font-weight: normal;}
Concatenator
Select HTML elements of special type only with given class/id.
Example: em.classname, em#idname {font-weight: normal;}
Universal selector
Select all elements.
Example: * {padding:0;}
Descendent selector
Select all elements that are lower down in the DOM tree (descendants).
Example: p em {font-weight: normal;}
-> Applies to all em's within p's.

Advanced

Child selector
Select all elements that are children in the DOM tree (direct descendant).
Example: p > em {font-weight: normal;}
-> Applies to all em's directly within p's, not supported by ie6 and below.

Adjacent sibling selectors
Select all elements that are on the same DOM level in the same DOM subtree
Example: h3 + p {font-size:80%;}
-> Applies to all p's that "belong" to a h3

(more…)

UI Brainbreaker

Wednesday, June 11th, 2008

Since a while I am thinking about a better possibility to present a link-matrix to my users. Currently it’s just a matrix where I have the topics as lines and a geographic location for each topic as column.
Now, if the user searches for “gewerblicher Rechtsschutz München” she navigates to the line “gewerblicher Rechtsschutz” and to the column 8 (what is the region code for München).

There are several drawbacks:

(1) Too many links on this one page
(2) Too much visual impression confuses the user
(3) Too hard to point to the small href links inside the matrix’s cells

Now - I am thinking about a solution with jQuery…
Anyone any idea? Thanks.

Favorite current project

Wednesday, June 4th, 2008

My favorite current project is opentimesheet.org.
It’s about efficient online time registration and recording.
Last 14 years as freelancer I was using a horrible number of time capturing systems. Actually I am using about three at a time now. There are so many of them, and most companies invent their own - starting with excel - ending up in a very special time consumptive “solution”.

Break the rule - join the new open source project!