How can you make cascading styles on notepad?

1 answer

Answer

1130803

2026-03-19 02:40

+ Follow

If you are using notepad, when you go to save the file you will want to make sure that after the filename to include the extension .css to make sure that it saves as a CSS style sheet. Beyond that, there is no difference in creating a CSS style sheet with notepad then there is with Notepad++ or any other web design editor. You have the element, class, or id that you are styling, the properties that you want to set rules for, and the values you are going to set them to. For example, if you are wanting to have a white background with black text centered and in bold you would have a style sheet that looks like:

body {

background-color: #FFFFFF;

}

p {

text-color: #000000;

font-weight: bold;

margin-right: auto;

margin-left: auto;

}

In the above example, the body and p are the elements that you are styling, background-color, text-color, font-weight, margin-right, and margin-left are the properties that you are setting specific rules for, and #FFFFFF, #000000, bold, and auto are the specific values you are declaring for each rule.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.