Posts

Showing posts with the label CSS

Html and Css Used in This Book

Image
HTML AND CSS USED IN THIS BOOK We will be using very simple HTML ( Hypertext Markup Language ) and styling it with a minimal amount of CSS ( Cascading Style Sheets ) in this book. Even if you have never created a webpage before, you should be able to get up to speed with this in a couple of minutes, so let’s take a quick look at what you need to know now. HTML HTML is the language used to create webpages. Here’s a bare minimum HTML document representing a webpage: <!DOCTYPE html> < html > < head > < title > My Fancy Website </ title > </ head > < body > < h1 > My Fancy Website </ h1 > </ body > </ html > You can save this in a file called  myFancyWebPage.html , using any text editor, and open it up in any web browser, and “Hey presto!”, you have a webpage! In the above example,  <!DOCTYPE html>  marks that we are starting a new HTML file. Next, insid...

How to convert SASS to CSS using nodeJs

Image
I picked node-sass implementer for libsass because it is based on node.js. Installing node-sass (Prerequisite) If you don't have npm, install  Node.js  first. $ npm install -g node-sass  installs node-sass globally  -g . This will hopefully install all you need, if not read libsass at the bottom. How to use node-sass from Command line and npm scripts General format: $ node - sass [ options ] < input . scss > [ output . css ] $ cat < input . scss > | node - sass > output . css Examples: $ node-sass my-styles.scss my-styles.css  compiles a single file manually. $ node-sass my-sass-folder/ -o my-css-folder/  compiles all the files in a folder manually. $ node-sass -w sass/ -o css/  compiles all the files in a folder automatically whenever the source file(s) are modified.  -w  adds a watch for changes to the file(s). More usefull options like 'compression'  @ here . Command line is good for ...

Popular posts from this blog

How to download a file using command prompt (cmd) Windows?

The future of Artificial Intelligence: 6 ways it will impact everyday life

Angular 9 - User Registration and Login Example & Tutorial