What is Behance
 
Advanced Search
Tip Exchange Creative-To-Creative Open Knowledge Exchange
Testing CSS Styles
Appreciations  18
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
Nice, does that actually validate? That's pretty handy
Posted on May 9, 2009 by Robin Bastien
You must be logged in to Add Knowledge
 
 
Advertisement
 
Advertisement
 
Advertisement
 
Follow Behance on Twitter
 
JobList Highlights
Comcast Interactive Media
Los Angeles, CA
ROWEANDESIGN
New York City
 
We Want Feedback