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?
These comments are not rendered in a users browser.
Cheers,
KaroshioHi Beverly,
This can actually be achieved very simply, here's an example:
[CODE]/* This is a comment */[/CODE]
Here's an example of a common way people use these comments to split up different areas of the site CSS:
[CODE]/* ----------------- Header Styling ------------------ */ [/CODE]
These comments are not rendered in a users browser.
Cheers,
Karoshio
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
~JakeAs 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
/* 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
Like:
/* Navbar desing ----------------------------------------------- */
you navbar css here!
- Sunil Bishnoi/* 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 :)
Like:
/* Navbar desing ----------------------------------------------- */
you navbar css here!
[B]- [U]Sunil Bishnoi[/U][/B]
karoshio
This can actually be achieved very simply, here's an example:
Here's an example of a common way people use these comments to split up different areas of the site CSS:
These comments are not rendered in a users browser.
Cheers,
Karoshio Hi Beverly, This can actually be achieved very simply, here's an example: [CODE]/* This is a comment */[/CODE] Here's an example of a common way people use these comments to split up different areas of the site CSS: [CODE]/* ----------------- Header Styling ------------------ */ [/CODE] These comments are not rendered in a users browser. Cheers, Karoshio
Are you sure you want to delete this post?