How to create a css file: First create a new text file on the desktop; then use Notepad or other text editor to open it, write the css code, save and close; finally, right-click the mouse and select in the options bar Select "Rename" and change the suffix name to ".css".
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
CSS is a language that defines style structures such as fonts, colors, positions, etc., and is used to describe the way information on web pages is formatted and displayed. CSS styles can be stored directly in HTML web pages or in separate style sheet files.
When styles need to be applied to many pages, external style sheets are ideal. Using external style sheets, you can change the look of your entire site by changing one file.
How to create a css file:
First create a new text document on the windows computer desktop,
Open it with Notepad and write The required css code
change the suffix name to ".css" and save it!
Of course, you can also use a text editor to create a new one, such as dw, EditPlus, etc. However, in the css file you create, write it directly. Style, no need to write anything else
Recommended learning:css video tutorial
The above is the detailed content of How to create css file. For more information, please follow other related articles on the PHP Chinese website!