What is the css formatting terms and conditions?

Asked By 10 points N/A Posted on -


What is the CSS formatting terms and conditions?

I would like to know the policy on using CSS coding and formatting, this is very important.

We have to abide the law of any software and hardware application.

Please let me know if you have some idea regarding this matter.

Your help will be much appreciated.

Waiting for your support.


Answered By 5 points N/A #186265

What is the css formatting terms and conditions?



CSS allows you change the appearance of your elements on a page making it more dynamic. With CSS you style your page according to the size and color of text, provide background colors and border styles.  Even positing of your elements can be done by CSS.
Here are THREE basic CSS Style rules that should be observed:
1. Use valid CSS tool code. To test your code try to use online validators like Firebug or W3C CSS validator.
2. Leading 0s.  Avoid  setting your fonts, margins and borders that starts with 0 just like below:
margin:  .34em
3.  Shorthand properties.  Using shorthand properties will make you code understandable and efficient. Observe how font styling was transformed from multiple lines to one line, same with padding properties.
/* Recommended */
border-top: 0;
font: 100%/1.6 arial, helvetica, serif;  
padding: 0 1em 2em;
/* This is not recommended */
border-top-style: none;
font-family: arial, helvetica, serif;
font-size: 100%;
line-height: 1.6;
padding-bottom: 2em;
padding-left: 1em;
padding-right: 1em;
padding-top: 0;
3. ID naming and style. Name your class in a manner that you will understand it whenever you review your code. Using ".atr" to represent ".author" is not a good idea as it is not readable.
/* Not recommended */
#navigation {}
.atr {}
/* Recommended */
#nav {}
.author {}
Good luck!

Login/Register to Answer

Related Questions