Skip to main content
11 votes
Accepted

Why doesn't CSS allow single-line comments?

Backwards compatibility Introducing single-line comments to the CSS syntax could change the meaning of files which currently uses the token //. Browser vendors are very reluctant to introduce changes ...
JacquesB's user avatar
  • 59.8k
8 votes

Why doesn't CSS allow single-line comments?

Supporting yet another syntax element isn't that easy: there are plenty of tools which should be able to handle yet additional comment style. Actually, I wouldn't be surprised to see that most ...
Arseni Mourzenko's user avatar
5 votes

Where to put css media queries in a CSS file?

I found this source helpful in answering this question. CSS Declaration Order. When reading this link it talks about the order in which CSS code is placed. "Related property declarations should be ...
RajoYak's user avatar
  • 51
2 votes
Accepted

Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc

The name of the escape key and the phrase "escape character" are certainly linked, but I think you are stretching the definition to cover your use case. The "escape" key on keyboards is so called ...
IMSoP's user avatar
  • 5,877
2 votes

Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc

A keyboard provides symbols. It is up to the software running on the computer to interpret them and respond with an action. The original intent of the Escape key is basically the same as the purpose ...
Martin Maat's user avatar
  • 18.4k
1 vote

How do I set a darker background color on hover *without knowing the original color*?

You can do this with a transparent background say 60% alpha black and two nested elements. Set the colour to the parent element background and the transparent black on the child background when the ...
Ewan's user avatar
  • 77k
1 vote

Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc

Re-thinking my approach (included for the sake of completeness): After reflecting on @Bart van Ingen Schenau's comment: This is the first time I encountered the ⎋ symbol in my forty-odd years. and ...
Rounin's user avatar
  • 285
1 vote

Where to put css media queries in a CSS file?

Put all media queries in a block at the very end so they will override the relevant style further up the sheet. When you started designing, you generally started doing it for one device of known ...
Purvi Barot's user avatar
1 vote

Website Multi Languuage

The solution is to separate the layout of these pages from their content. I assume that you want the same general appearance for the corresponding pages in all languages. So instead of copying the ...
amon's user avatar
  • 135k
1 vote

Website Multi Languuage

The key thing here is to know that Multi language/culture stuff is called "Internationalisation and Localisation" or shortened to "i18n" Once you know that your google searches will start returning ...
Ewan's user avatar
  • 77k
1 vote

Why CSS3 Basic Box Model is "Dangerously outdated"?

If you see the history of revisions for the working draft you will see the last modification was at 2007-08-09. In the complete list of CSS drafts you will se the "Basic Box model" draft is the most ...
F.Igor's user avatar
  • 264

Only top scored, non community-wiki answers of a minimum length are eligible