Welcome
Arachne's Web
A group focused on serving the AW community by providing help and discussion on topics such as HTML, CSS, web design, homesite decorating, netiquette and issues important to web artists.

Code Information Center (2 threads, 1007 posts)
    Tips and Tricks (155 posts)
    Social Thread

    Know some neat code for use here or on the net? Post 'em here! ...
    50 Members have made 121 Posts here to date.
    Google
    AncientWorlds.net Web
    Next: Danke!
    Prev: Thanks, Asenath!
    Hiding comments in CSS & html
    aish.gif
    Author: * Lara Vardhana - 1 Post on this thread out of 247 Posts sitewide.
    Date: Nov 6, 2007 - 13:20

    here ya go anahoops!

    Ok, two ways to hide comments. One is using HTML and is best used if you are going to plop the comment somewhere in the page. The second one is just for CSS and I don't know if it works everywhere but I know for a fact it does work if you put it inside a css stylesheet. It's great for saying what section of your code does what. Ok, here's the HTML version:

    <!--place your comment in here-->

    So it's a < bracket, an exclamation point ! and two dashes, then your comment, then two dashes and a closing bracket or >. Note there is no exclamation point at end.

    Second one in CSS:

    /*place your comments in here*/

    I don't even know if that will show because I didnt use escape code to place that. Just an / thingy, an asterisk * and comments, then same in reverse. ? What is weird is I could have sworn it was two // thingies. hm. Will have to test that.

    //*COMMENT COMMENT COMMENTLICIOUS*//

    Ok. I've tested it, and it's just the one end / thingy (the one in white), it works fine, but only when placed inside a stylesheet. Elsewhere, well, as you can see, it shows up. So I think I'll continue to stick to the html style ones.

    <!--I HAVE PRETTY FEET-->

    It's true!


    NEXT: Danke!
    PREV: Thanks, Asenath!
Rome - Rome, Season 1 - The Stolen Eagle


Copyright 2002-2011 AncientWorlds LLC | Code of Conduct and Terms of Service | Contact Us! | The AncientWorlds Staff