What is Behance
 
Advanced Search
Creative Professional Network
Tip Exchange Creative-To-Creative Open Knowledge Exchange
Testing CSS Styles
Appreciations  15
Posted on September 17, 2007 by James Touhey
Here's a quick way to test a new CSS style without commenting the entire code block out. Just place an "x" before the style you don't want to show. That's it! Just be sure to remove the "x" before uploading your final style sheet as this can cause conflicts with other scripts.

Normal style (no commenting):

#someDivStyle {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 1em;
    color: black;
}

Regular commenting style ("font-size" is commented out):

#someDivStyle {
    font-family: "Helvetica", Arial, sans-serif;
    /*font-size: 1em;*/
    color: black;
}

Quick commenting style ("font-size" will still be commented out):

#someDivStyle {
    font-family: "Helvetica", Arial, sans-serif;
    xfont-size: 1em;
    color: black;
}
Created September 17, 2007
Appreciate It!
 
That really is a neat little trick.....

If you're looking for a bigger toolbox,check out this link: http://mashable.com/2007/09/2...ss-toolbox
Posted on September 25, 2007 by One
Via mashable
You must be logged in to Add Knowledge
 
 
Advertisement
 
Advertisement
 
Advertisement
Apple Store
 
JobList Highlights
Qwentès Italia Srl
Milano Italy
IdN
Hong Kong
 
We Want Feedback