Need help with CSS

Discussion in 'CSS' started by moneycms, Apr 2, 2010.

  1. #1
    Is it possible to include comments in my style sheet?What are pseudo-classes and where can I implement it in my webdesign?
     
    moneycms, Apr 2, 2010 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    There are two methods of commenting in CSS. Both come from the AT&T heritage languages like C

    // Double slash means comment until end of line

    /*
    "forward-slash asterisk" is the start of a wrapped comment
    "asterisk forward-slash" is the end of a wrapped comment
    */

    I always use the latter method even if it's on one line just because I like everything to have clear openings and closings - see why I choose XHTML over HTML.

    See whenever I use zoom as a haslayout trigger:

    zoom:1; /* trip haslayout */

    Pretty simple.
     
    deathshadow, Apr 3, 2010 IP