Some common properties of CSS

Some common properties of CSS
CSS background:
background:#00ffee; //Set the background color
background-image:url(*.jpg); //Set the background image
background-repeat:repeat-x; //Set the background image to repeat
background-attachment:fixed; //Set the background not to scroll with the text

CSS Text:
text-indent: 5em; //Set text indent
text-transform:uppercase/lowercase/capitalize; //Set text conversion case
text-decoration:none/underline/overline/line-through/blink; //Set text decoration
white-space:normal/pre; //Process whitespace
color:#eeffee; //Set text color
line-height:30px; //Set line height

CSS fonts:
font-family: Georgia; //Specify the font family
font-style: normal/italic/oblique //Specify normal/italic/oblique text display
font-weight: normal/bold/900; //Specify the thickness of the text
font-size: 16px/em; //Specify the text size
font-variant: small-caps; //Specify small capital letters

CSS List:
list-style-type:/decimal -- ordered list
/decimal-leading-zero
/lower-roman
/upper-roman
/lower-alpha
/upper-alpha

/disc -- Unordered list
/circle
/squre
/decimal

CSS tables:
border-collapse: collapse; //Set the table to collapse
border: 1px solid black; //Set the table edge
width: 100%; //Set the table width
height: 50px; //Set the table height
text-align:right; //Set the alignment of the text in the table
vertical-align:bottom //Set the vertical alignment of the table
padding:15px; //Set the inner margin of the table
color:white; //Set the font color in the table
background-color:green; //Set the background color of the table

CSS borders:
outline: #00ff00 dotted thick; //Set outline color/style/width
border: blue solid thin; //Set the outline

<<:  Nginx stream configuration proxy (Nginx TCP/UDP load balancing)

>>:  How to select all child elements and add styles to them in CSS

Recommend

MySQL Server IO 100% Analysis and Optimization Solution

Preface During the stress test, if the most direc...

A brief discussion on JavaScript throttling and anti-shake

Table of contents Throttling and anti-shake conce...

Share some tips on using JavaScript operators

Table of contents 1. Optional chaining operator [...

Solve the problem of docker's tls (ssl) certificate expiration

Problem phenomenon: [root@localhost ~]# docker im...

Complete steps to implement face recognition login in Ubuntu

1. Install Howdy: howdy project address sudo add-...

Sample code for implementing Alipay sandbox payment with Vue+SpringBoot

First, download a series of things from the Alipa...

Solution to invalid margin-top of elements in div tags

Just as the title says. The question is very stran...

XHTML Basic 1.1, a mobile web markup language recommended by W3C

W3C recently released two standards, namely "...

Simple analysis of EffectList in React

Table of contents EffectList Collection EffectLis...

Explanation of factors affecting database performance in MySQL

A story about database performance During the int...

4 principles for clean and beautiful web design

This article will discuss these 4 principles as t...

Detailed explanation of Javascript Echarts air quality map effect

We need to first combine the air quality data wit...

Three ways to prevent MySQL from inserting duplicate data

Create a new table CREATE TABLE `person` ( `id` i...