Margin I rarely use, generally used to also only relative to adjust the position of a layer to achieve a certain effect. Because you've been working on a topic that you've been using recently, you've researched how to implement various layouts. It
Body {Font-size:0.8em;Color:navy;}The above means setting the Font-size font size and color font colors for the body selector.So basically, when it works with HTML pages, the text color between the body tag (the entire window content) is navy the
No matter who, in the process of making the page will encounter such or such problems, out of the question is sure to solve. The premise of solving the problem is to know where the problem is, and for beginners it is not always necessary to see the
Inherit is a good thing not only to save code, especially to deal with background, but also to maintain. However, if you want to inherit background's picture, you cannot abbreviate it, and it will look naïve: Background: #fff inherit left top;
Common Div+css page Dislocation problem
1, the Web page in a version of the browser display normal, different versions of the browser display dislocation is not normal
2, is about the structure of the page layout, but left and right into the top
Brief tutorials
This is a cool hamburger morph animation effect made with jquery and CSS3. This effect uses jquery to attach button events, and CSS3 transform and animation to create animated effects.
How to use
HTML structure
The HTML structure of
In css, the function of display: none; is to hide html elements. Otherwise, display: block is usually used ;. However, the display: block; function is to convert the current html element into a block element.Elements such as // belong to placeholder
1. Two methods for referencing external CSS in a webpageThere are two ways to reference external CSS files on a webpage: link and @ import. The two methods are the same on the page.Link reference is as follows: The @ import reference method is as
Definition and usageThe letter-spacing attribute adds or removes spaces (character spacing) between characters ).This attribute defines how much space is inserted between text character boxes. Because the font is usually narrower than its character
Code The code is as follows:Copy code pure CSS animation effects animate.css This is a series of animated effects implemented using CSS. Click the following button to view the effects ~~ Attention seekers flash bounce shake tada fade-
Syntax: text-align: left | right | center | justifyDescription: sets the horizontal alignment of the text in the element.Parameter: left alignment; right: right alignment; center: center; justify: both ends alignmentInitial value: related to browser
When multiple style sheets are used, the style sheet needs to compete for control of a specific selector. In these cases, there will always be rules for style sheets to gain control. The following features determine the result of a different style
In the previous web development section, I introduced a lot of methods to process HTML tables. Although the method of using tables to deploy web pages is no longer fashionable, however, you can still use tables to display table column data.There are
The code is as follows:Copy code ==================================== CSS ====================== ======. Holder {Width: 740px;Height: 300px;Border: 1px solid #777;Text-align: center;Display: table-cell;Vertical-align: middle;}/* The following
The advanced layout of DIV + CSS has gradually become popular, but the so-called DIV + CSS layout makes people more worried. Do not make DIV a substitute for Table, the multi-layer nested DIV will seriously affect the readability of the code. Use
How to use ID and CLASS? I have mentioned usage principles and skills in the title. The usage principles and skills here are my summary of experience. They are not from which books, so they are not authoritative discussions, please read this article
I.Benefits of Using div + css for website layout1: Separation of representation and contentExtract the design part and place it in an independent style file. Only text information is stored in the HTML file.2: Improves the indexing efficiency of
Tip: you can modify some code before running Code for css rounded corner effectRounded corner effectThis code is provided by the webpage special effect network. Tip: you can modify some code before running
Tip: you can modify some code before running You can use the rounded corner style again and set different classes for different content. You can change the background style. testboxcon uses a "relative" location, it mainly serves as a reference for
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