Loading...

2006-09-30

CSS: the correct format for pseudo classes

20 pro tips - .net magazine: "
For text rollover effects, it’s important that the pseudo classes are in the right order, or they won’t work correctly in all browsers. The correct order is:
a:link { color: blue; }
a:visited { color: purple; }
a:hover { color: purple; }
a:active { color: red; }

Space saver
Nobody likes building forms in HTML, especially as browsers insist on adding padding around them for no reason. Simply add the following CSS to your stylesheet:
form style=”margin-top: 0; margin-bottom: 0;”

Brak komentarzy: