Hidden features of CSS
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2009-03-09T23:17:27Z
Indexed on
2010/05/14
7:54 UTC
Read the original article
Hit count: 392
css
|hidden-features
I have definitely picked up some useful tips in the hidden features style questions concerning PHP and XHTML.
So here is one to cover CSS. While easy to pick up, it takes a little while to learn about everything, their default behaviors, properties etc
Here are some to start the ball
@charset "UTF-8"; /* set the character set. must be first line as Gumbo points out in comments */
.element {
/* takes precedence over other stylings */
display: block !important;
/* mozilla .... rounded corners with no images */
-moz-border-radius: 10px;
/* webkit equivalent */
-webkit-border-radius: 10px
}
These are not so much hidden, but their use is not often widespread. What tips, tricks, rare features have you discovered with CSS?
© Stack Overflow or respective owner