Pages

Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

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;}

References

SyntaxHighlighter brushes

This is a list what kind of brushes that SyntaxHighlighter provides. Screen Shot 2012 10 27 at 11 40 49 AM From http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/.