Loading....

CSS is the language we use to style a Web page.

What is CSS?
  • CSS stands for Cascading Style Sheets
  • CSS describes how HTML elements are to be displayed on screen, paper, or in other media
  • CSS saves a lot of work. It can control the layout of multiple web pages all at once
  • External stylesheets are stored in CSS files

Why Use CSS?

CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.

CSS Example
    body 
        background-color: lightblue;
    }

    h1 {
        color: white;
        text-align: center;
    }

    p {
        font-family: verdana;
        font-size: 20px;
    }

CSS Syntax

A CSS rule consists of a selector and a declaration block.

CSS Comments
CSS Example
    /* This is a single-line comment */
    p {
        color: red;
    }

    p {
        color: red;  /* This is a single-line comment*/
    }

    /* This is
    a multi-line
    comment */
    p {
        color: red;
    } 

@media
@media(min-width)
    @media(min-width: 900px) {       // minimum width at which style starts, for desktop, style start after 900px 
        #spRepName {display:none}
    } 

@media(max-width)
    @media(max-width: 900px) {        // minimum width at which style ends, used in mobile,style before 900px 
        #spRepName {display:none  }
    } 

Last Update: July 17, 2026  

July 8, 2026 29 vikas@crmhike.com  CSS
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Add A Knowledge Base Question !

You will receive an email when your question will be answered.

+ = Verify Human or Spambot ?

Back To Top

Add A Knowledge Base Question !

You will receive an email when your question will be answered.

+ = Verify Human or Spambot ?