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

Vue3.0 implements the magnifying glass effect case study

The effect to be achieved is: fixed zoom in twice...

Website redesign is a difficult task for every family

<br />Every family has its own problems, and...

Steps to encapsulate the carousel component in vue3.0

Table of contents 1: Encapsulation idea 2. Packag...

Implementation code for operating mysql database in golang

Preface Golang provides the database/sql package ...

VPS builds offline download server (post-network disk era)

motivation Due to learning needs, I purchased a v...

MySQL foreign key (FOREIGN KEY) usage case detailed explanation

Introduction: The disadvantages of storing all da...

How to clear the timer elegantly in Vue

Table of contents Preface optimization Derivative...

Detailed explanation of MySQL/Java server support for emoji and problem solving

This article describes the support and problem so...

Several common methods of sending requests using axios in React

Table of contents Install and introduce axios dep...

Two ways to export csv in win10 mysql

There are two ways to export csv in win10. The fi...

What is flex and a detailed tutorial on flex layout syntax

Flex Layout Flex is the abbreviation of Flexible ...

How to convert extra text into ellipsis in HTML

If you want to display extra text as ellipsis in ...

How to solve the problem of blurry small icons on mobile devices

Preface Previously, I talked about the problem of...

How to simulate enumeration with JS

Preface In current JavaScript, there is no concep...