In the CSS,expression can customize the properties, use this property, you can easily control the display of page elements, the following example is to let the link and the normal text display, and when clicked does not trigger the href attribute
Positioning attributes will be the key to the door of happiness that the web bugs open:Absolute positioning
The code is as follows
Copy Code
H4 {position:absolute; left:100px; top:43px}
This CSS rule allows the
In contrast to margin, this is the internal spacing of containers such as div and p. it can also be divided into padding-top, padding-bottom, padding-left, and padding-right. four attributes,Let's look at a padding instance.This is a tablecell with
Letter-spacingAdd or remove characters between white spaces.Inheritance: YesNote: negative values are not allowed.JavaScript syntaxThe CSS attribute of can also dynamically change a JavaScript.Script syntax: object. style. letterSpacing =
CSS of outlineThe outline is a line. Pay attention to the surrounding factors and make the content "stand out" outside China ".Elements surrounding the outline of the CSS attribute set of the outline. You can specify the style, color, and width
Today, let's take a look at how the image uses div to arrange multiple rows and columns, as shown in the following figure. The code is as follows:Copy code Changsha Hengtong maternal and child supplies Co., Ltd.
The difference between css padding and margin. Let's take a look at an image and then analyze the difference between padding and margin based on the image.As shown in the preceding figure, there are two boxes A and B. padding and B represent margin.
What needs to be learnedCSSAttributes make HTML tags impossible: control the word spacing and letter spacing.Word spacingWith the padding attribute, you can add more distances between words: H3 {word-spacing: 1em}The parameter value you used will
CSS naming rulesI. File naming rules The code is as follows:Copy code Global Style: global.css;Frame layout: layout.css;Font.css;Link style: link.css;Print Style: print.css; II. Naming rules for common classes/IDS The code is as follows:Copy
In the div + css layout, the overall architecture is generally as follows: For the header part, you must display the website Title. In addition to displaying the website title, you may also need to display other important objects, such as the
This is the bug of ie6 and ie7.Solution:When the style of the parent or child element has the position: relative attribute, the overflow: hidden attribute of the parent element becomes invalid.In IE 6 7, we found that the child element will exceed
Value descriptionBaseline default. The element is placed on the base line of the parent element.Sub vertical alignment text subscript.Super Vertical alignmentTop: align the top of the element with the top of the highest element in the row.Text-top:
Syntax: overflow: visible | auto | hidden | scrollVisible: Do not cut the content or add a scroll bar. If this default value is explicitly declared, the object is cut to the size of the window or frame containing the object. In addition, the clip
Flipped CSSBy sanqi, also known as Halikidiki: AugustNow I am myself, and I am sure that all web designers will mouse over one image at a time when they want to change its design life to another (commonly used contact ). The most common way to
I have recently read SKIN CSS files created by many netizens and found many redundant codes. Next I will introduce how to clear redundant code to make your CSS file more concise.I. Attributes of margin and paddingWe can see from relevant information
CSS attributes:2. BOX Model attributesWhat is BOX? CSS uses ...... is called a BOX (container). a box has three types of attributes: padding, margin, and border.Margin attributes:The Margin attributes are divided into five attributes: margin-top,
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