CSS Box mode detailed three

Source: Internet
Author: User
Tags object

Hello, I am float, welcome to visit the CSS family, in the CSS family, in today's CSS typesetting popular era, I can play an important role oh. Because my job is very useful to web designers, just as important as the previous align help you locate page elements, but I seem to be much more powerful than align. Next I will show you the scene of my skills, watch carefully oh. Of course, I may not be able to all of my skills to give you a demonstration, because some of the skills I may not remember it, then please those who know me better to help me add it, such as moderator and so on.

First of all, my main job is to help align to like in the Web page, once I issue a float:left or Float:right command, the image I float will move left or right until it encounters a border (border), fills (padding), boundaries (margin Or the edge of another block object, and of course there are some seemingly special situations, such as when a negative boundary (margin) is set by the element I float. I can also make text flow around the right image that I float, which is also my feature. Also note that it is best to set the floating object width, otherwise there will be some unexpected trouble. I have two main floating types, they are float:left and float:right, of course, I have a function is float:none, but float:none less use, this is my default value, sometimes very useful, I will speak. Now I'm starting to perform. My stage can be IE (Internet Explorer), or FF (Firefox), but some skills I must be in the standard stage, such as FF in order to do, please pay attention to my instructions, or you use IE is not to see the effect.

1. I am quiet (when my properties are not set), that is: Float:none, or the style does not write this item, the elements in the Web page will be arranged according to their own appearance, is generally the side of the line, the first appeared in front, the following run box is Div first appear, p after the appearance, So P is in the back of the Div, notice that there's a lot of space on the right side of the Div, but the P text doesn't go with it on the right.

[1] [2] [3] Next page



Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.