Fandom

Wikianswers

Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

What is the syntax for creating a CSS comment?

1,031,886questions on
Wikianswers
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.


The correct syntax is to start the comment with /* and to end it with */:

/* This is a comment */
p
{
  /* This is another comment */
  text-align: center;
}

See http://www.w3schools.com/Css/css_syntax.asp

Note that a comment can span several lines but you can't nest them.

Also on Fandom

Random Wiki