CodeClerks

Hidden explanatory text in style sheets



Write the reason you're deleting this FAQ

How would you place hidden text in the style sheet that does not render, such as a note to the webmaster or so the next person who views/modifies the CSS stylesheet will have guidance and direction?

Comments

Please login or sign up to leave a comment

Join
karoshio
Hi Beverly,

This can actually be achieved very simply, here's an example:

/* This is a comment */


Here's an example of a common way people use these comments to split up different areas of the site CSS:

/* ----------------- Header Styling ------------------ */


These comments are not rendered in a users browser.


Cheers,
Karoshio



Are you sure you want to delete this post?

jakemadness
As long as the comment is wrapped in /**/ it should render the style sheet in the users browser fine, otherwise you could hit bugs like some styles not applied to elements etc
~Jake



Are you sure you want to delete this post?

sunil0021
/* Hidden Text Here ----------------------------------------------- */

you can use ^ above code to hide specific text in CSS, usually this code is used to make CSS file easy to understand Hidden explanatory text in style sheets

Like:

/* Navbar desing ----------------------------------------------- */
you navbar css here!

- Sunil Bishnoi



Are you sure you want to delete this post?