1 areas in the box
The main attributes of a box are 5: width, height, padding, border, margin.
Width is the meaning of "breadth", which refers to the width of the content, not the width of the box.
Height is the meaning of "altitude", the height of the CSS refers to the level of the content, not the height of the box
Padding is the meaning of "inside margin"
Border is "border"
Margin is "outside margin"
true possession width = left border + Left p
Article Introduction: 2 hours to learn CSS to make Web pages.
The first step: Planning the Web site, this tutorial will be illustrated as an example to build a Web site
1. Planning the website, this tutorial builds the Web site as an example of the following illustration.
The basic layout is shown in the following figure:
Consisting mainly of five parts:
1.Main navigation navigation bar with button effects. width:760px height:50px
Css
one. Selector modePattern/meaning/content description
*
matches any element. (Universal selector)
E
Matches any element e (for example, an element of type E). (type selector)
E F
Matches any descendant element F of element E. (descendant selector)
E > F
Matches any child element F of element E. (sub selector)
E:first-child
When Element e is the first child element in its parent element, the match element E. (: First-child pseudo Class)
E:link e:v
The use of this property in the project sets the vertical display of the text, but it can only be used in IE, and there is no good workaround in other browsers.
Grammar:
WRITING-MODE:LR-TB TB-RL
Parameters:
LR-TB: Left-right, up-down
TB-RL: Up-down, right-left
Description
Sets or retrieves the intrinsic writing direction of the object's content block. Western languages are left-right, up-and-down writing methods. But Asian languages often write in the upper-down, right-left ways.
When this prope
Article Introduction: CSS controls the maximum minimum width and height of the page (compatible with the IE6 version).
/* min Width * *. min_width{min-width:300px;/* Sets max-width for IE * *_width:expression (Document.body.clientWidth }
/* Maximum Width * *. max_width{max-width:600px;/* Sets max-width for IE * *_width:expression (Document.body.clientWidth > 600?) "600px": "Auto");}
/* Minimum Height * *. min_height{min-height:200px;/* S
Recently, I stumbled across an interesting question. I want to randomly set the value of the animation-duration. This is a non-random example:
This is an animation I wrote in CSS:
@keyframes Flicker { 0% { opacity:1; } 100% { opacity:0; }} #red { animation:flicker 2s ease alternate infinite;}
Currently working well. But there is no randomization, and the animation execution time is fixed at 2s.
The animation I want is a random number withi
In HTML, the introduction of CSS is mainly in-line, inline, imported, linked 4 kinds. Inline and embedded not much to say, mainly talk about the import and link between the difference and the actual development of the link.First, the syntax is different. Give me a chestnut.LINK Type:1 Import Type:1 Second, the Import and link display effect is slightly different. When using an import, the CSS file will be l
Introduction of this for different browsers to write different CSS code process, called CSS hack!2 principle because different browsers support and parsing of CSS, but also due to the precedence of CSS in the relationship. We can write different CSS for different browsers ac
CSS StylesCSS is a shorthand for cascading Style sheets, which allows you to easily set the display location and format of page elements, and even produce filters, image fades, and fade-out gradients. CSS is to display the effect of the Web page with Word layout control a paragraph, font, color, background, border and so On.Note: comments/* * * cannot contain annotations1,
CSS specifications and css naming rules
AbbreviationThe abbreviation can reduce the CSS file size and increase readability and maintainability.But not all values must be abbreviated, because when an attribute is abbreviated, all items are always set, and sometimes we do not want to set some items in the value.
/* For example, we use the following style to center
What is a CSS Filter?
CSS Filter is an extension subset of conventional CSS. It can make the application objects (text, images, HTML elements...) produce blur, transparency, edge light, and other effects similar to those in Photoshop. The rational use of the CSS Filter can reduce the number of images used by the web
CSS creates the background:In order to make the style of the Web page more rich, but also in order to let the content and style of the page can be split apart, CSS is born from this idea, CSS is cascading style Sheets acronym, meaning cascading style sheet.With most of the css,html in the style of the label is discarde
Do not know since when start, on the network can see div+css everywhere, in the end what is DIV+CSS? Is it the legendary standard reconstruction? Is the standard not a reasonable use of XHTML tags from the simplest source? But why are there so many div+css? Since can div+css, then why not can call Span+
Cascading Style sheets:the Definitive Guide, 2nd Edition is a thorough review to all aspects of CSS2.1 and a comprehe Nsive Guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user interface, paged media, and More. It explores in detail the individual CSS property and the IT interacts with the other properties, and shows the How to avoid comm
CSS opacity has been a fairly popular technique in recent years, but it can be a headache for developers to support across browsers. There is currently no common method to ensure that the transparency settings are valid for all browsers currently in use.
This summary is mainly to provide some CSS opaque details, code examples and explanations to implement this useful C
18 Practical CSS skills
This article summarizes all the skills and compatibility solutions since I started using the CSS layout method. I would like to share these with you, I will focus on some mistakes that beginners may make (including those I have made myself). If you are already a CSS guru, you may already know these skills. If you have more skills, I hope I
Perceptual experience CSS
What is CSS? You may be eager to know the answer. However, vague text descriptions are of little significance. Let's have a perceptual experience first. Look at this HTML file without adding CSS. It is an ordinary webpage. However, by adding CSS rules to this file, we can get a very beautiful
Some interesting CSS questions (15th) -- about CSS keywords initial, inherit and unset, inheritunset
Start this series and talk about some interestingCSSQuestions and question types are not empty. What to think of is not only to broaden the problem-solving ideas, but also to involve CSS details that are easy to ignore.
Compatibility is not taken into consideratio
Table of Contents
CSS Properties
CSS Rules
You style HTML elements via CSS properties. Different HTML elements May has Different CSS properties you can set. CSS properties can be organized into CSS rules. A
CSS filters are compatible with ie, Firefox, Google, css, and valley.
This summary mainly provides some details about CSS opacity, sample code, and explanations to implement this useful CSS technology to be compatible with all browsers in your project.
One thing to note about CSS
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.