SlideShare a Scribd company logo
1 of 10
Dot Net Training
Prerequisite Before learning ASP. NET
Dot Net Training
Introduction To LESS & SASS
CRB Tech reviews brings you the basics of LESS & SASS
A very hot topic lately is which CSS preprocessor language should one choose? There
are some on-line debates coming up every few days it seems. Now the more concern
is which one language is best.
Really short answer: Sass
Slightly longer answer: Sass is better on a whole bunch , but if you are already
contented in LESS, that’s cool, you are doing yourself a favor by preprocessing.
Much longer answer: Read on.
Dot Net Training
A quick introduction to Less and Sass
Designing CSS style sheets and attaching them to web pages is a basic task one
needs to do. Although this task is straightforward and very simple it has some troubles
of its own. Lets consider the following style rules:
h1 {
color: #0026ff;
font-family: Arial;
font-size: 20px;
}
h2 {
color: #0026ff;
font-family: Arial;
font-size: 16px;
}
Dot Net Training
Here there are two style rules that use the same color and font-family value. Image a
case where you are using a particular color code and font family at 100 places.
Although this is perfectly fine as far as final display is concerned what if you need to
change the color from #0026ff to something else? You need to change it at all those
100 places. How it would be if you can use variables in CSS? Pretty nice. In this way a
value can be stored in a variable and the variable can be used in all the 100 places.
This is how CSS pre-processors such as Less and Sass come into scene.
Either Less and Sass can help you achieve the same goal but they use little different
syntax.
The official Less website lesscss.org defines Less like this:
LESS is a CSS pre-processor; it extends the CSS language, adding features that allow
variables, mix-ins, functions and many other techniques that help you make CSS
which is more maintainable, them-able and expendable.
Dot Net Training
Sass lets you utilize features that don’t exist in CSS yet like variables, nesting, mix-ins,
inheritance and other goodies.
Installing and using Less
Let’s see how Less can be used with a simple example.
First of all visit Node.js website and install Node Package Manager on your
development machine. Then open the Command Prompt and issue the following
instruct:
npm install -g lessThis will install Less on your device. Once installed you can use
Less compiler to compile Less code to plain CSS.
Next, develop an empty ASP.NET MVC project in Visual Studio and add a LESS style
sheet .
Take a look how the Add New dialog has a template for this item:
Notice that Less files are stored with .less extension. Instead of using this template
you can also manually add a text file and save it with .less extension.
Dot Net Training
Then add the following “code” to the Less style sheet:
@textSize:20px;
@fontName: Arial;
h1{
color:blue;
font-family:@fontName;
font-size:@textSize;
}
The above code accounces two Less variables – @textSize and @fontName – and also
stores some values in them. Note that the h1 style doesn’t code font-family and font-
size. It uses @textSize and @fontName variables declared earlier. Now if you choose to
change the font size and family all you need to do is alter the variable value.
Browsers doesn’t understand .less files unless you compile them to plain CSS. To do so
you need to invoke Less compiler as shown:
$ lessc StyleSheet1.less > StyleSheet1.cs
Dot Net Training
The Less command line compiler – lessc – takes two things. The .less file name and
the .css file name where the outcome of compilation is to be stored. If you implore the
above order successfully StyleSheet1.css will contain something like this:
h1 {
color: blue;
font-family: Arial;
font-size: 20px;}
This is simply CSS
Now you can add a <link> reference to StyleSheet1.css in all the ASP.NET web forms
or MVC views.
Installing and using Sass
Sass works on similar lines as Less but there are some differences. Firstly, one need
to install Ruby on the development machine. Visit Ruby Installer website. Once
installed you need to invoke Command Prompt as before and write the following
command (make sure to navigate to the Ruby installation path).
Dot Net Training
sass –watch “C:DemosStyleSheet2.scss“
This will compile the Sass code and create StyleSheet2.css file for you. If you open
the .css file you should get something like this:
h1 {
color: blue;
font-family: Arial;
font-size: 20px; }
/*# sourceMappingURL=stylesheet2.css.map */
You can now refer the StyleSheet2.css file in your web forms or views.
If you are considering to undergo .Net training then our CRB Tech .Net Training center
would be very helpful in fulfilling your aspirations. Our .Net certification course could
be immensely useful for you.
Stay connected to this page of CRB Tech reviews for more up-gradation and other
resources.
Thank You..!
Dot Net Training
Thank You..!
Dot Net Training

More Related Content

Viewers also liked (11)

Hoja litúrgica del domingo XXXI del Tiempo Ordinario- ciclo A
Hoja litúrgica del domingo XXXI del Tiempo Ordinario- ciclo AHoja litúrgica del domingo XXXI del Tiempo Ordinario- ciclo A
Hoja litúrgica del domingo XXXI del Tiempo Ordinario- ciclo A
 
2
22
2
 
Transversalidad para Estadística Descriptiva
Transversalidad para Estadística DescriptivaTransversalidad para Estadística Descriptiva
Transversalidad para Estadística Descriptiva
 
1.LPH
1.LPH1.LPH
1.LPH
 
Análisis de salud de una comunidad
Análisis de salud de una comunidadAnálisis de salud de una comunidad
Análisis de salud de una comunidad
 
Clase inicial de Bioestadística U-2014
Clase inicial de Bioestadística U-2014Clase inicial de Bioestadística U-2014
Clase inicial de Bioestadística U-2014
 
Empoderamiento en el aula.
Empoderamiento en el aula.Empoderamiento en el aula.
Empoderamiento en el aula.
 
Construcción de webquest para la enseñanza de la matemática
Construcción de webquest para la enseñanza de la matemáticaConstrucción de webquest para la enseñanza de la matemática
Construcción de webquest para la enseñanza de la matemática
 
Variables y escalas de medicion
Variables y escalas de medicionVariables y escalas de medicion
Variables y escalas de medicion
 
Distribuciones de probabilidad
Distribuciones de probabilidadDistribuciones de probabilidad
Distribuciones de probabilidad
 
Técnicas e instrumentos
Técnicas e instrumentosTécnicas e instrumentos
Técnicas e instrumentos
 

More from sonia merchant

What does dot net hold for 2016?
What does dot net hold for 2016?What does dot net hold for 2016?
What does dot net hold for 2016?sonia merchant
 
What does .net hold for 2016?
What does .net hold for 2016?What does .net hold for 2016?
What does .net hold for 2016?sonia merchant
 
Data protection api's in asp dot net
Data protection api's in asp dot netData protection api's in asp dot net
Data protection api's in asp dot netsonia merchant
 
Authorization in asp dot net part 2
Authorization in asp dot net part 2Authorization in asp dot net part 2
Authorization in asp dot net part 2sonia merchant
 
Asp dot-net core problems and fixes
Asp dot-net core problems and fixes Asp dot-net core problems and fixes
Asp dot-net core problems and fixes sonia merchant
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netsonia merchant
 
Build a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netBuild a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netsonia merchant
 
How to optimize asp dot net application ?
How to optimize asp dot net application ?How to optimize asp dot net application ?
How to optimize asp dot net application ?sonia merchant
 
Learn dot net attributes
Learn dot net attributesLearn dot net attributes
Learn dot net attributessonia merchant
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributessonia merchant
 
Owin and-katana-overview
Owin and-katana-overviewOwin and-katana-overview
Owin and-katana-overviewsonia merchant
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answerssonia merchant
 
Next generation asp.net v next
Next generation asp.net v nextNext generation asp.net v next
Next generation asp.net v nextsonia merchant
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal appssonia merchant
 
Browser frame building with c# and vb dot net
Browser frame building  with c# and vb dot netBrowser frame building  with c# and vb dot net
Browser frame building with c# and vb dot netsonia merchant
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 
Silverlight versions-features
Silverlight versions-featuresSilverlight versions-features
Silverlight versions-featuressonia merchant
 

More from sonia merchant (20)

What does dot net hold for 2016?
What does dot net hold for 2016?What does dot net hold for 2016?
What does dot net hold for 2016?
 
What does .net hold for 2016?
What does .net hold for 2016?What does .net hold for 2016?
What does .net hold for 2016?
 
Data protection api's in asp dot net
Data protection api's in asp dot netData protection api's in asp dot net
Data protection api's in asp dot net
 
Authorization p iv
Authorization p ivAuthorization p iv
Authorization p iv
 
Authorization iii
Authorization iiiAuthorization iii
Authorization iii
 
Authorization in asp dot net part 2
Authorization in asp dot net part 2Authorization in asp dot net part 2
Authorization in asp dot net part 2
 
Asp dot-net core problems and fixes
Asp dot-net core problems and fixes Asp dot-net core problems and fixes
Asp dot-net core problems and fixes
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-net
 
Build a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-netBuild a-search-page-with-elastic search-and-dot-net
Build a-search-page-with-elastic search-and-dot-net
 
How to optimize asp dot net application ?
How to optimize asp dot net application ?How to optimize asp dot net application ?
How to optimize asp dot net application ?
 
10 things to remember
10 things to remember10 things to remember
10 things to remember
 
Learn dot net attributes
Learn dot net attributesLearn dot net attributes
Learn dot net attributes
 
Learn about dot net attributes
Learn about dot net attributesLearn about dot net attributes
Learn about dot net attributes
 
Owin and-katana-overview
Owin and-katana-overviewOwin and-katana-overview
Owin and-katana-overview
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answers
 
Next generation asp.net v next
Next generation asp.net v nextNext generation asp.net v next
Next generation asp.net v next
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal apps
 
Browser frame building with c# and vb dot net
Browser frame building  with c# and vb dot netBrowser frame building  with c# and vb dot net
Browser frame building with c# and vb dot net
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 
Silverlight versions-features
Silverlight versions-featuresSilverlight versions-features
Silverlight versions-features
 

Recently uploaded

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Prerequisite before learning asp dot net

  • 2. Dot Net Training Introduction To LESS & SASS CRB Tech reviews brings you the basics of LESS & SASS A very hot topic lately is which CSS preprocessor language should one choose? There are some on-line debates coming up every few days it seems. Now the more concern is which one language is best. Really short answer: Sass Slightly longer answer: Sass is better on a whole bunch , but if you are already contented in LESS, that’s cool, you are doing yourself a favor by preprocessing. Much longer answer: Read on.
  • 3. Dot Net Training A quick introduction to Less and Sass Designing CSS style sheets and attaching them to web pages is a basic task one needs to do. Although this task is straightforward and very simple it has some troubles of its own. Lets consider the following style rules: h1 { color: #0026ff; font-family: Arial; font-size: 20px; } h2 { color: #0026ff; font-family: Arial; font-size: 16px; }
  • 4. Dot Net Training Here there are two style rules that use the same color and font-family value. Image a case where you are using a particular color code and font family at 100 places. Although this is perfectly fine as far as final display is concerned what if you need to change the color from #0026ff to something else? You need to change it at all those 100 places. How it would be if you can use variables in CSS? Pretty nice. In this way a value can be stored in a variable and the variable can be used in all the 100 places. This is how CSS pre-processors such as Less and Sass come into scene. Either Less and Sass can help you achieve the same goal but they use little different syntax. The official Less website lesscss.org defines Less like this: LESS is a CSS pre-processor; it extends the CSS language, adding features that allow variables, mix-ins, functions and many other techniques that help you make CSS which is more maintainable, them-able and expendable.
  • 5. Dot Net Training Sass lets you utilize features that don’t exist in CSS yet like variables, nesting, mix-ins, inheritance and other goodies. Installing and using Less Let’s see how Less can be used with a simple example. First of all visit Node.js website and install Node Package Manager on your development machine. Then open the Command Prompt and issue the following instruct: npm install -g lessThis will install Less on your device. Once installed you can use Less compiler to compile Less code to plain CSS. Next, develop an empty ASP.NET MVC project in Visual Studio and add a LESS style sheet . Take a look how the Add New dialog has a template for this item: Notice that Less files are stored with .less extension. Instead of using this template you can also manually add a text file and save it with .less extension.
  • 6. Dot Net Training Then add the following “code” to the Less style sheet: @textSize:20px; @fontName: Arial; h1{ color:blue; font-family:@fontName; font-size:@textSize; } The above code accounces two Less variables – @textSize and @fontName – and also stores some values in them. Note that the h1 style doesn’t code font-family and font- size. It uses @textSize and @fontName variables declared earlier. Now if you choose to change the font size and family all you need to do is alter the variable value. Browsers doesn’t understand .less files unless you compile them to plain CSS. To do so you need to invoke Less compiler as shown: $ lessc StyleSheet1.less > StyleSheet1.cs
  • 7. Dot Net Training The Less command line compiler – lessc – takes two things. The .less file name and the .css file name where the outcome of compilation is to be stored. If you implore the above order successfully StyleSheet1.css will contain something like this: h1 { color: blue; font-family: Arial; font-size: 20px;} This is simply CSS Now you can add a <link> reference to StyleSheet1.css in all the ASP.NET web forms or MVC views. Installing and using Sass Sass works on similar lines as Less but there are some differences. Firstly, one need to install Ruby on the development machine. Visit Ruby Installer website. Once installed you need to invoke Command Prompt as before and write the following command (make sure to navigate to the Ruby installation path).
  • 8. Dot Net Training sass –watch “C:DemosStyleSheet2.scss“ This will compile the Sass code and create StyleSheet2.css file for you. If you open the .css file you should get something like this: h1 { color: blue; font-family: Arial; font-size: 20px; } /*# sourceMappingURL=stylesheet2.css.map */ You can now refer the StyleSheet2.css file in your web forms or views. If you are considering to undergo .Net training then our CRB Tech .Net Training center would be very helpful in fulfilling your aspirations. Our .Net certification course could be immensely useful for you. Stay connected to this page of CRB Tech reviews for more up-gradation and other resources.