Waterfall flow layout Feeling is pretty good, so this article will give you to share the CSS to achieve waterfall flow two ways, through the multi-column multi-column layout to achieve waterfall flow and flex layout to achieve waterfall flow.
1.multi-column multi-column layout for waterfall flow
Let's briefly talk about some of the multi-column related properties
Column-count setting the number of columns
Column-gap to set the spacing betwee
The div css Dash Tutorial includes tutorials that explain the various styles of div dashed cases that often appear in the CSS tutorial.This section introduces common CSS dashed lines and div tutorials. CSS dashed underline, list dotted line all done.
Directory
which sides of the box should not be next to the floating box.To achieve this effect, add enough space on the top margin of the element to be cleaned so that the topmost edge of the element drops vertically below the floating box:This is a useful tool that allows the surrounding elements to make room for floating elements.Let's look at floats and cleanup in more detail. Suppose you want to float a picture to the left of a block of text, and you want the picture and text to be contained in anot
Learning this series of tutorials requires a certain HTML and CSS basis, which means that you have done Web pages before and will use a table layout. If you are just beginning to learn web production, do not know what is the table layout and HTML and CSS, we recommend that you first to recharge, otherwise you will be very difficult to learn this tutorial or do not understand.
Due to the time relationship,
abbreviation, for example. CL-> Clearfix
5. Avoid using a variety of CSS Hack, if you need to make a special definition of IE, see the following section "on the CSS Hack description"
6. Do not use redundant and inefficient CSS, such as:
UL Li a span {...}
7. Use!important carefully
8. Suggested use of the words in the class/id name
6.1. State of presentati
1, downloaded from the Internet a good Login box style (table with CSS layout);2, the beginner XHTML, oneself rewrite a bit, hope useful3. How can I not upload it?? 1. [Code]XHTML_CSS Combination?Table+css and xhtml+css Implement the same login box (code snippet)
First, Inheritance (inherited): Attributes that are set on the parent element are also available to descendant elements.Application scenario: Generally used to set some common information on the Web page, text size, font color, etc.Note the point:1. Not all attributes can be inherited, only attributes that begin with color/font-/text-/Line can inherit.2, the particularity of inheritance:The text color and underline in a tag cannot be modified by inheritance (not biological)The size of the text i
Article Introduction: 11 class with an ID "who has a high priority problem."
Last Friday, before work, our beloved 33 adults also discussed in the group about "11 classes and an ID" who has high priority problem ~_~!
Guess
01
02
03
04
05
10
11
12
13
First, using automatic margin to achieve the center
The preferred way to center elements horizontally in CSS is to use the margin property-set the Margin-left and Margin-right properties of the element to auto. In practical use, we can create a container-scoped div for these elements that need to be centered.
It is important to note that you must specify a width for the container:
DIV+CSS Layout Cente
What is CSS Sprites?The word "Sprite" in computer graphics has its unique definition, because the game, video and other picture quality more and more high, there must be a technology can intelligently handle materials and stickers, and to keep the picture smooth. "Sprite" is a technique that combines many pictures into a grid and then navigates the contents of each grid to the screen through a program.The sprite is positioned on a static picture and i
occupies 2 copies of B and AB shares the 12 copies, while downlink A occupies 1 copy of B and 1 copy of C, ABC shared the 12 copies.
On the medium screen of the tablet, uplink A accounts for 8 portions of B, AB shares the 12 portions, and downlink A accounts for 10 portions of B and 1 portion of C, ABC shared the 12 copies.
On the big screen of the PC, uplink A accounts for 4 parts B accounts for 8 parts,
Use your own CSS framework (for conversion) and css framework[Classic recommendations] CSS framework selection wizard
Many CSS frameworks have existed for a while, but most Web developers avoid using them. On the contrary, the most experienced developers want to create their own CS
First of all, speakinghover
Pseudo-elements do not support hover, but we can add hover to common tag tags to support hover of pseudo-elements, such as. div2:hover::before
And then it's about absolute achieving aRealization of the implementation of the implementation of the two four
Here I suddenly find that implementation three and implementation four have some differences in animation.
CSS (12). CS
Method One:
Copy Code code as follows:
Description: The advantage is that the content can be any HTML element, including hyperlinks and pictures, etc., in the IE6 will also automatically display ellipses at the end. The disadvantage is that you must specify the width value, and the width cannot be a percentage, otherwise it will be considered as a percent of the total character length in IE.
Method Two:
Copy Code code as follows:
Note: The advanta
I divide the Forum homepage into header area, information area, content area, footer area. First of all with a large div to include these, mainly in view of the overall adjustment of the page is convenient, such as to adjust to widescreen or narrow screen, as long as the setting of this large div can be.
First put the code out, for friends to debug use.
Css:
Copy Code code as follows:
/* CSS Doc
ProblemWhen a block element that defines the width is filled with all plain English or pure numbers, it will hold large containers in IE and FF, do not wrap automatically, and when numbers or English characters are in Chinese, they will be wrapped in Chinese characters, while pure Chinese characters can be automatically wrapped. How to solve this problem? Let's meet two characters Word-wrap and Word-break.Workaroundcan be added in CSSWord-wrap:break-word;Word-break:break-all;Word-wrap to control
Learn the CSS selector this week.The most commonly used work is the element selector, the ID selector, the class selector, and the descendant selector.There are some less common but powerful selectors are easy to overlook, this study summarizes.1. Descendant selector and descendant selectorDescendant selector:element1 element2, finds all element2 that are descendants of Element1 Descendant selector:element1>element2 to find the Element2 of elem
CSS3 Border-radius PropertiesDefinition and usageThe Border-radius property is a shorthand property for setting four Border-*-radius properties.Tip: This property allows you to add rounded borders to elements!1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Documenttitle>6 style>7 Div{8 width:200px;9 Height:200px;Ten background:Red; One Border-radius:10px 40px 70px 100px; A } - style> - Head> the Body> - Div>Div> - Body> - HTML>1, HTML+DIV+
CSS Positioning PropertiesCSS positioning properties allow you to position elements.
Properties
Description
Position
Place the element in a static, relative, absolute, or fixed position.
Top
Defines the offset between the top margin boundary of an anchored element and the upper boundary of its containing block.
Right
Defines the offset between the right margin boundary of
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.