Priority: External style
Priority, that is: the right side of the selector with the same name overrides the left
1. Internal style sheet
2. Use the link tag to declare one of the most common ways to use external resources in a document.
The
The following small series for you to share div+css clear floating common methods summary. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
P+css Clear
Clear:left; Indicates that there cannot be a floating element on the left.
Clear:right; indicates that the right side cannot have floating elements.Clear:both: There is no floating element on either side.
However, when you use it, you also have to
CSS3 can do animation everyone is certainly familiar with, but we have wood has cleverly used this function to make a beautiful photo wall it?
So today we will use the CSS3 animation feature to make beautiful photo wall together!
First part: HTML
This article describes using CSS3 to implement background color gradients
CSS Color Gradient Concepts:
CSS gradient (gradients) allows us to modify a space-from one color to another-to fill the space with a color gradient effect. The gradient has
The footer base (Sticky footer) is the footer portion of the page that is always at the bottom of the browser window.
When the page content is long enough to exceed the viewable browser height, the footer will be pushed to the bottom of the page as
This article is a detailed explanation of the use of margin margins in CSS
h2{margin:10px 0;} p{margin:20px 0;} ...... This is a title This is another title in this case, The first H2 Margin-bottom (10px), P's Margin-top (20px), and the
Summarizes several ways of CSS centering, note: * For the common way, "wrap" for the container, "div" for the element to be centered.
* * Absolute positioning, wide and high are known to the following code can be implemented, or can be used
The position option defines the positioning properties of an element with 5 optional values: Static, relative, absolute, fixed, inherit
Property values are relative, absolute, fixed top | Left | Right| Bottom | Z-index to work.
Static (default
* * For a long time project, transition and animation two CSS3 properties are often used in the actual project, think of it to sort out. As follows:
1: First Introduce transition:
A, in the project often encounter such a situation, such as a button,
This article details CSS3 background-related style instance code
Background-image to draw multiple picture overlays, examples are as follows:
Background-image Draw multiple Images overlay
Background-clip: The drawing area of the
This article describes the CSS three positioning general, floating, absolute positioning details
General flow, normal flow, document flow
Normal flow is displayed as follows
The elements are displayed in the normal corresponding element,
The text is hidden beyond the section, summarizing two methods.
1, single-line hidden
HTML code
when the text exceeds the range, the out-of-section is hidden.
CSS Code
. MI {width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
Border usage:
1. Border-width property sets the width of the border
Possible values: pixels
2. The Border-style property sets the style of the border
Possible values: solid (straight line), dashed (dashed), dotted (dotted line)
2. Border-color
This article details the border-image properties of CSS Styles
Border-image-source property sets the path of the picture for the border [none | ]
p { border:20px solid #000; Border-image-source:url (border.png);}
Border-image-slice Property
The following small series for everyone to bring the CSS text beyond the specified width after hiding and display as an ellipsis implementation of the sample code. Small series feel very good, now share to everyone, also for everyone to make a
Responsive design is a different type of resolution displayed under different devices.
The media property is used to specify different styles for different media types. Re-render the page with the browser's width and height eradicated.
Syntax:
This article details CSS box models and block-level, inline elements
First, CSS box model
Box Model Overview
The box model is one of the core knowledge points of CSS, which specifies how elements are displayed and how they interact with each other.
Background-origin: Specifies which part of the Background-position property is positioned relative to the container.
Padding-box background image is positioned relative to the inner margin box; (default)
The Border-box background image is
The following small series for everyone to bring a recommended CSS horizontally centered various methods of summary. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service