Topic: Comment CSS Pages that link to <a href="https://ozoneasylum.com/backlink?for=10765" title="Pages that link to Topic: Comment CSS" rel="nofollow" >Topic: Comment CSS\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 06-26-2002 17:53 Edit Quote

Whats the characters used to begin a comment line in CSS?

Karl

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 06-26-2002 18:47 Edit Quote

/* comment block */

rtfm

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 06-26-2002 19:04 Edit Quote

(Note that the typical // won't work. You *must* use an opening and a closing delimiter.)

(Is "delimiter" the right word there? hmm...)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 06-26-2002 19:40 Edit Quote

You can do it 2 ways.

Single Line: //Coment
Multi-Line: /* Comment
comment
comment
comment
*/

Have to close it on the multi-line comment.

Later,
C:\


~Binary is best~

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 06-26-2002 19:43 Edit Quote

Thanks a bunch : )

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 06-26-2002 20:47 Edit Quote

No, CPrompt, you can only do it the multi-line way, as I said. Check the link DL gave.

Then again, I wouldn't be surprised if some browsers allowed the single line method, since that's used in so many other programming languages, but they *shouldn't* allow it.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 06-26-2002 20:55 Edit Quote

That's strange Slime. I use the single line method all the time. Never has caused a problem for me yet. Wonder why. I've tested my pages on NN, IE and Opera on Win and Mac OS.

Hmmmm. . .

Later,
C:\


~Binary is best~

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 06-26-2002 21:05 Edit Quote

Really? Strange, maybe I'm wrong. Hmm... why don't you check such a page with the W3C CSS validator and see what happens?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu