Leave the second div out of the document stream and move to the right and the original space will not be preserved.
HTML file:
"Http://www.w3.org/TR/html4/loose.dtd" >
Examples of css absolute positioning
Content 1
Content 2
An element can have both an ID selector and a class selector, but only one ID selector, and the ID selector has a precedence greater than the class selector.
Cases:
HTML file Contents:
an element can have both an ID selector and a class
What CSS is (what is CSS)
CSS (cascading style sheets Cascading style sheet) is a language that describes the look and format of your HTML.
A stylesheet (style sheet) is a file that describes how an HTML page looks.
We say that these stylesheets
In Web page production, there are many terms, such as CSS, HTML, DHTML, XHTML, and so on. In the following article we will use some basic knowledge about HTML, and before you learn this introductory tutorial, make sure you have a certain HTML base.
Recently in the study of CSS, just combined with the project made a flexible tab, using pure HTML+CSS implementation, just summed up.
First look at the preview interface:
Sample HTML can be accessed:
(1) For particularly common files, such as the CSS files to be used by the EXT-JS library, you can have 2 choices:
Option 1: Put it in the root/html/common/themes/top_head.jsp:
..
" rel= "stylesheet" type= "Text/css"/> " "rel=" stylesheet
HTML code:
Example Source Code My homepage Grape My home My log My log My album My collection Community Circle Grape My home My log My album My collection My SMS Grape My album My collection account Management Grape My home My log
When we make a form, the input, textarea, button styles are easier to define, and the select and input file styles are difficult to define.
The appearance of input file under system defaults:
We change the default appearance of the system by
The next step is to really design the layout. As with traditional methods, you first have a rough outline in your mind and then use Photoshop to draw it out. You may see Web standards on the site is mostly very simple, because the Web standards more
The implementation is as follows:
The instance code is as follows:
paper aircraft &L T;style>. Wrap {position:relative; Display:inline-block; width:300px; height:120px; -webkit-animation:
Today Xiao Ying to everyone to share a love with CSS painting, the bottom of the code and production process, I hope to help you.
The first step:
Draw a square first.
css Painting Hearts
Step Two:
will take
Use the time to pay attention to compatibility, modern browser chrome, FF, Edge and mobile side are all right, ie 9 or less.
The code is as follows:
CSS Styles
. spinner {margin:0 auto; width:82px; Text-align:center;} #fancybox-loading
In general, the center absolute positioning element, left:50%;top:50%, margin negative or through transform can also achieve the effect.
Find another technique today, using, Top,left,right,bottom value 0, then Magin:auto, you can achieve the center.
Three basic positioning mechanisms in CSS
A. Normal document flow
B. Positioning: Relative positioning
Absolute positioning
Fixed positioning
C. Floating
1. In the normal stream, the element position is determined by the document order and
CSS elements by default in accordance with normal flow arrangement, there are two cases can change the arrangement of elements, one way is floating, in the previous article has been elaborated in detail, and the other is now to discuss the
When people just touch the layout, they tend to use the positioning method more often. Because the concept of positioning seems to be relatively easy to grasp. On the surface, you specify exactly where a block element is located, and it will be
Previous words
Navigation bar tab is very common in the page, this article said that the CSS implementation of the Navigation bar tab three ways
Layout
As shown, a number of definitions are defined first, and the whole module is called navigation,
Text wrapping is a very common but unobtrusive feature. You don't have to set anything, the browser will automatically wrap. For example, in English, the browser chooses to wrap a half-width space or a hyphen, depending on the size of the container.
If the width of a box is zero, then its four border will come together, become solid, and each border is a triangle, we can use the triangle to achieve the sharp chin of the dialogue box.
By setting the border on the left to have color, the lower
I believe everyone in the development of the project has encountered such requirements, a row of X (x>1) blocks and the spacing between adjacent blocks is the same.
This is probably the way it is, and here are some ways to do it.1. Negative
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