Archive for the 'Lee Siu Chuen' Category

Published by Pui-chor on 03 Jul 2015

Forcing text wrap within container

Prevent Long URL’s From Breaking Out of Container from


word-wrap: break-word;
-ms-word-break: break-all;/* Be VERY careful with this, breaks normal words wherever */ word-break:break-all;/* Non standard for webkit */
word-break: break-word;

This does it!

Published by Pui-chor on 02 Jul 2015

Making First column width different from others

table tr td{ width: 20em; }

table tr td:first-child { width: 10em; }

Published by Pui-chor on 08 Jan 2015

Fixing z-index layer problem

Finally found a way to fix the z-index layering problem. The running of span element set up z-index layer automatically and I have to use the position:static property to fix this and then using :hover property to fix the position to relative and then the embeded span will be shown properly with the z-index layer. See the code below:

z-index layering fix

Next »