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
Text hiding is widely used, but the commonly used methods have no affinity. Disadvantages of common text hiding methods:
1, Display:none
This method search engine may think that the hidden text is garbage information and is ignored;
The screen
CSS is the abbreviation of cascading style sheets, Chinese translation "Cascading style form", I call it "cascading style sheet", I feel this kind of casually, no other meaning. It's actually a set of styles. You may be unfamiliar with the term CSS,
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:
Straight to the point, now there is a table:
Implement the effect of highlighting the current row background when moving to a transactional content area.
1, the establishment of a standard HTML document structure
When it comes to standard HTML
(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
Some CSS properties allow a string of values to be substituted for many properties, with the value separated by a space.
Margin,pdding and Border-width allow merging of Margin-top-width, Margin-right-width, Margin-bottom-width, and so on, in the
The common sidebar of the latest comment list generally has two formats: passers-by a published in a certain article, or passers-by B: introduction ... They all have a problem, that is, it is difficult to control the line, the length is different,
Basic ideas
First consider the outer setting of a container div,id set to #container, so that his height is the height of the browser window, and then the #footer Div is set to #container the child Div, and use the absolute positioning method, so
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
Difference IE6 with FF:
Background:orange;*background:blue;
Distinction between IE6 and IE7:
Background:green!important;background:blue;
Difference IE7 with FF:
Background:orange; *background:green;
Difference ff,ie7,ie6:
A style sheet can be external, inline, or embedded; Linked external style files are generally:
This is written in the head tag, the contents of which are not case-sensitive, and the double quotes can be either single quotes or omitted; Explain
list-style-type (指定类型) list-style-image (指定图片) list-style-position (指定位置) list-style (综合设置) marker-offset (不支持)
Use List-style can be set individually or synthetically: type, picture, position, no order;
If both the picture and the type
Web sites built with the standards of the consortium can theoretically be separated from the structure by complete performance. For example, it is possible to completely change the skin (performance, CSS) without moving the skeleton (structure,
Because usually not very used, so the past to write CSS for the position properties of the absolute, relative value of the understanding of the fuzzy, for Z-index Cascade is not touch the mind, in addition to understanding the factors, the different
CSS code simplification is very useful and necessary in the work. When writing CSS code, there is often redundant code, in order to improve the quality of the code and file compression to the minimum, so that the code is readable, have to simplify
As a popular technology, the development of CSS is indeed somewhat slow. CSS was first proposed in 1994, first supported by browsers in 1996, CSS has been touted as the successor to the traditional HTML based Web code. CSS uses style sheets to
1, navigation menu using pictures, FLASH
Navigation menu using pictures, flash of course Bi Chunwen would have been nice, but the search engine didn't know your pictures and flash. If you want to use a beautiful picture to navigate, you can use the
About the CSS Sprites technology optimization We can do how much, can reduce the number of requests. This is not done unilaterally, and it all depends on the combination of XHTML, CSS, CSS sprites pictures. So far there is no absolute optimization
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