In accordance with the CSS specification, floating elements (floats) are moved out of the document stream without affecting the layout of the block box but only the arrangement of the inline box (usually text). Therefore, when its height exceeds the
The code is as follows:
I'm on top I'm down there
Effect:
Set the margin-top for H3 to try:
The code is as follows:
h3{Clear:both;border:1px #66CC00 Solid;margin-top:30px;}
Look at the effect:
No change, clear area at work, change:
In today's web page production, almost all the beautiful pages are used CSS. CSS is the abbreviation for cascading style sheet, and some books translate it into cascading style sheets. With the control of CSS, our web page will give people a
With the growth of smartphones, mobile web sites can also do more personalized, recently in the revision of their own mobile website
This one, encountered a website picture size problem, mobile phone screen is relatively small, how to upload the
CSS font settings in the use of the process occurs frequently, the following for everyone to organize a number of related solutions, interested friends can refer to the following
font:12px/1.5 Arial,5b8b4f53,sans-serif What do you mean font:
We know the syntax of CSS in the first two chapters, but to show the effect in the browser, let the browser recognize and invoke it. When a browser reads a style sheet, it is read in text format, which describes four ways to insert a style sheet on
The following small series for everyone to bring an article on CSS clear floating (
ClearfixAnd
Clear) usage. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
This article uses CSS3 flat loading animation effects
The code is as follows:
css3 Rotation Loading effect _ Q browser: FireFox, Chrome, Opera, Edge, Proud Tour, Sogou, window of the world. IE8 and the
This article mainly introduces the front-end development of the CSS principle of the detailed description of the relevant information, the need for friends can refer to the following
CSS principles of front-end development
Web front-end developers
This article mainly introduces the difference between the element and the block level element in the line, it has a good reference value, below the small series to see it together
One, the difference between the inline element and the block-level
Record the processing of the image blur effect in the project, requirements: The background map must be passed through the IMG tag, and the avatar will be made into a circular
Example Picture:
HTML code:
Discard those useless methods, only remember the most practical one way!
Add a class attribute to the parent element to clear the float: clearfix!!!
The styles are as follows:
. clearfix:after{Content:
Clear floating
Box height problem
Height of the content in the standard stream can prop up the height of the box
The height of the content of the floating element in the floating stream can not hold up the height of the box
Clear
In CSS coding, it is necessary to estimate colors and units, however, there are many ways to write about color and unit values in CSS, so it is important to make it clear.
Color
When I was in front of the beginner, there was a question "How do I
A lot of people just mention the @font face rule, the heart will involuntarily "Oh ~ ~" The sound: "This I know, can be used to generate custom characters small icon!" "The thing is, the problem is that a lot of people think that creating a small
Why do you want to initialize CSS?
CSS initialization refers to the style of resetting the browser. The default styles for different browsers may vary, so the first thing to develop is how to unify them. If you do not initialize CSS, there will
Today's share of the people is a pure CSS3 implementation of the character walking animation, in the absence of JavaScript, using the CSS3 technology to portray the character walking posture very lifelike. In fact, the principle of the
1. Use global reset
The default properties for different browser elements vary, using reset to reset some of the default properties of the browser element to achieve browser compatibility. It is important to note, however, that you do not use global
CSS float floating effect in some cases very unstable, the control is not good when the general or clear floating for the better, here we summarize the CSS floating poor content overflow problem and the method of clearing floating
Throw a problem
Summary of differences between px, em, and rem in css, pxrem
Preface
Both em and rem are flexible and scalable units, which are converted from a browser to a pixel value, depending on the font size in the design. If the value is 1em or 1rem, it can
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