When many people are learning CSS, they want to know what skills there are in CSS. In fact, mastering CSS style skills is also helpful to write CSS yourself. So what are the skills in CSS abbreviation? Let’s summarize five css tips below.
1: The size of the css box. The css box mainly has two attributes, namely margin and padding. The two usages are the same. We all know that the box is three-dimensional. , and there are four directions, each direction has a border, then we take margin as an example, the code is as follows:
margin-top:2px; margin-right:3px; margin-bottom:3px; margin-left:2px;
If you feel that the above is too complicated and not simple enough, you can also write margin like this: 2px 3px 3px 2px; syntax margin: top right bottom left; the two expression methods are also the same.
2: The properties of the border are as follows:
border-width:1px; border-style:solid; border-color:#000;
We can also change to another code:
border:1px solid #000; 语法 border:width style color;
3: How to write color
Color in css The representation method is hexadecimal. If the first two codes are the same, they can be abbreviated to half.
Four: When many students are learning CSS, they always like to write a semicolon when they finish writing the last attribute. In fact, the last semicolon does not need to be written.
5: We can use fonts to represent fonts, but first we need to define the abbreviated font, using two values: font-size and font-family respectively.
The above is what are the techniques for CSS abbreviation? All five css tips are introduced. If you want to know more about CSS video tutorial, please pay attention to php Chinese website.
The above is the detailed content of What are the techniques for CSS abbreviation? Summary of five css tips. For more information, please follow other related articles on the PHP Chinese website!

This is the 3rd post in a small series we did on form accessibility. If you missed the second post, check out "Managing User Focus with :focus-visible". In

This tutorial demonstrates creating professional-looking JavaScript forms using the Smart Forms framework (note: no longer available). While the framework itself is unavailable, the principles and techniques remain relevant for other form builders.

The CSS box-shadow and outline properties gained theme.json support in WordPress 6.1. Let's look at a few examples of how it works in real themes, and what options we have to apply these styles to WordPress blocks and elements.

If you’ve recently started working with GraphQL, or reviewed its pros and cons, you’ve no doubt heard things like “GraphQL doesn’t support caching” or

The Svelte transition API provides a way to animate components when they enter or leave the document, including custom Svelte transitions.

How much time do you spend designing the content presentation for your websites? When you write a new blog post or create a new page, are you thinking about

In this article we will be diving into the world of scrollbars. I know, it doesn’t sound too glamorous, but trust me, a well-designed page goes hand-in-hand

npm commands run various tasks for you, either as a one-off or a continuously running process for things like starting a server or compiling code.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
