Saturday, October 27, 2012

css programming

css code is more like a declarative language with C flavor. C flavor means it has open and closing bracket, and it separates elements with ';' just like C does.
Declarative in the sense that it starts with name and then directives what should be done.
This is an example for having blue 15pt for h2 heading, and drop some shadow on image.
h2 {
  color: blue;
  font-size: 15pt;

img {
  box-shadow: 10px 10px 5px #888;
For box-shadow, refer to this post.

You can dynamically modify the setup using class or ID.
.noborder{box-shadow: none;}


No comments:

Post a Comment