1
The syntax in CSS on Wed Oct 06, 2010 8:27 pm
Unknown Data
Registered Member

The syntax in CSS Learn CSS - part 2 |
The syntax in CSS Syntax in CSS created by three parts. • Selector • Property • Value In a strike can it look like this:
The selector is normally the element/tag we wish to define. The property is the property we wish to change and the value got a variable value. The property and value is actually seperated with a semicolon and sorrundded by a bracket-parenthesis. Here is a quick example were the text will be placed center.
If we wish to define more than one property, can we seperate it by a semicolon. Agian have we placed an example.
Groups It's also possible to use more than one selector at the time, but you then have to seperate it with a comma as shown in the below example. Things like this can be used in connection with titles etc.
Comment in stylesheet It's also possible to leave a comment in a stylesheet, without it can be seen in a displayed HTML page. This can be done by doing following.
Now we got some information about the syntax in CSS. In the next lesson will we work with the placement of the stylesheet. |
| Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |


Home

