1 / 5

Float

Float. 11 February 2014. Floating Elements. Floated horizontally: left or right Will move as far to the left or right as it can Example: inside a div or section Elements after will flow around it Elements before it not affected. Placing Images.

darius
Télécharger la présentation

Float

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Float 11 February 2014

  2. Floating Elements • Floated horizontally: left or right • Will move as far to the left or right as it can • Example: inside a div or section • Elements afterwill flow around it • Elements beforeit not affected

  3. Placing Images • Easy to put an image on a line by itself • May want it next to text • Float the image -- float: left (or right); • ALWAYS put the image before the text • Floatutorial

  4. Float • Can be applied on any element • Pictures (img, figure) • Sidebars (div, section, header) • Navigation buttons (list items) • Floatutorial especially good

  5. To Stop FLOAT • Clear property • Specifies which sides of an element other floating elements are notallowed • Left, right, both • Can be applied to any element • Images to create a vertical stack • Headers to break up the page into sections • To end a float

More Related