adapt some examples to CSS