I read the below CSS code somewhere. I have tried this code in my HTML5 project in Netbeans, but it is giving errors. I have been searching the internet for the last 2 days to get an answer, but all in vein. Hence posting the question on this forum now. Hope someone will answer my query…
Actually I was on the mac app store yesterday and was downloading BBEdit from there. This code was written on the screenshot of BBEdit. Code is complete in all sense as shown on the screenshot ( you can also check on the apple app store and type BBEdit in the search box ).
I assumed if BBEdit had a screenshot with this code, then this must be a usual CSS code that can be written in any other editor as well. Please check if this code is valid or not. If this is valid, then this can save a lot of lines of code in CSS where same attribute for multiple elements needs to be defined.
I guess you can continue calling it a CSS file if you choose, but that doesn’t make it a CSS file. Paul gave a comparison between the code in the BBEditor and the CSS that it should produce. A browser cannot interpret that code in the BBEdit file. It’s NOT CSS. Paul’s code can be interpreted by a browser. It IS CSS.
Google “CSS preprocessor” or something like that and see if it helps you understand the concepts. Ralph nailed it pretty well, though.