{"id":248,"date":"2016-08-27T02:52:01","date_gmt":"2016-08-27T02:52:01","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=248"},"modified":"2019-03-18T14:29:26","modified_gmt":"2019-03-18T13:29:26","slug":"add-a-comment-in-your-css-file","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/add-a-comment-in-your-css-file\/","title":{"rendered":"Add a comment in your CSS\/PHP file"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Example:<\/p>\n<pre class=\"EnlighterJSRAW\">body {\n     font-size: 62.5%&lt;\/pre&gt; \/* 1em = 10px *\/\n}<\/pre>\n<p>&nbsp;<br \/>\nThe content\u00a0inside the <strong>\/* *\/<\/strong> marks are CSS comments. This allows you to enter notes into CSS\/PHP that will not be interpreted. In this case, this comment lets someone reading the CSS\/PHP file know that that particular line of CSS\/PHP was intended to allow for using ems to set font size later in the CSS\/PHP in a more intuitive base 10 way.<\/p>\n<p><strong>Tip:<\/strong> when you add some functions in your functions.php file, add a comment ad the beginning and another at the end of your function in order to navigate in your file with ease.<\/p>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/css-tricks.com\/snippets\/css\/comments-in-css\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/css-tricks.com\/snippets\/css\/comments-in-css\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Example: body { font-size: 62.5%&lt;\/pre&gt; \/* 1em = 10px *\/ } &nbsp; The content\u00a0inside the \/* *\/ marks are CSS [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[62,69,298,305],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-comment","tag-css","tag-tip","tag-trick"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":54916,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/248\/revisions\/54916"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}