Warning: main(../head.php) [function.main]: failed to open stream: No such file or directory in /home/content/j/m/c/jmchest/html/courses/www/css_syntax.php on line 16

Warning: main() [function.include]: Failed opening '../head.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/m/c/jmchest/html/courses/www/css_syntax.php on line 16

CSS Syntax

selector : { declaration }

selector = element to be styled
declaration = consists of CSS property and value
format of declaration: { property: value }

Type Selectors:
body
p
img
div
span
b
i

*almost any other html tag within the body

Example:
body { font-size: 10px; font-weight: bold }

Attribute Selectors:
class
id

Example of class:
.big{ font-size: 50px; }

use in html tag:
<p class=big>hello<p>

Example of id
#big{ font-size: 50px; }

use in html tag:
<p id=big>hello<p>


Warning: main(../menu.php) [function.main]: failed to open stream: No such file or directory in /home/content/j/m/c/jmchest/html/courses/www/css_syntax.php on line 61

Warning: main() [function.include]: Failed opening '../menu.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/m/c/jmchest/html/courses/www/css_syntax.php on line 61