CSS Float
CSS Float
CSS Float
Search w3schools.c Select Language HOME HTML C SS JAVASC RIPT JQUERY XML ASP.NET PHP SQL MORE...
R EFER ENC ES | EXAMPLES
CSS Basic
CSS HOME CSS Introduction CSS Syntax CSS Id & Class CSS How To
CSS Float
Previous Next Chapter
CSS Styling
Styling Backgrounds Styling Text Styling Fonts Styling Links Styling Lists Styling Tables
Example
i m g { f l o a t : r i g h t ; }
Try it yourself
CSS Advanced
CSS Grouping/Nesting CSS Dimension CSS Display CSS Positioning CSS Floating CSS Align CSS Pseudo-class CSS Pseudo-element CSS Navigation Bar CSS Image Gallery CSS Image Opacity CSS Image Sprites CSS Media Types CSS Attribute Selectors CSS Summary
Related Searches: Logo Design Services Free HTML Tutorial W eb Design Templates Basic HTML CSS Code W eb Hosting Plans ASP Programming Free JavaScript Codes
Example
. t h u m b n a i l { f l o a t : l e f t ; w i d t h : 1 1 0 p x ; h e i g h t : 9 0 p x ; m a r g i n : 5 p x ; }
Try it yourself
CSS Examples
CSS Examples CSS Quiz CSS Certificate
CSS References
CSS Reference CSS Selectors CSS Reference Aural CSS Web Safe Fonts CSS Units CSS Colors CSS Color Values CSS Color Names CSS Color HEX
Example
. t e x t _ l i n e { c l e a r : b o t h ; }
Try it yourself
More Examples
An image with border and margins that floats to the right in a paragraph Let an image float to the right in a paragraph. Add border and margins to the image. An image with a caption that floats to the right Let an image with a caption float to the right.
w3schools.com/css/css_float.asp
1/2
8/4/13
CSS Float
Let the first letter of a paragraph float to the left Let the first letter of a paragraph float to the left and style the letter. Creating a horizontal menu Use float with a list of hyperlinks to create a horizontal menu. Creating a homepage without tables Use float to create a homepage with a header, footer, left content and main content.
float
Previous
Next Chapter
Top 10 Tutorials
HTML Tutorial HTML5 Tutorial C SS Tutorial C SS3 Tutorial JavaScript Tutorial jQuery Tutorial SQL Tutorial PHP Tutorial ASP.NET Tutorial XML Tutorial
Top 10 References
HTML/HTML5 Reference C SS 1,2,3 Reference C SS 3 Browser Support JavaScript HTML DOM XML DOM PHP Reference jQuery Reference ASP.NET Reference HTML C olors
Examples
HTML Examples C SS Examples XML Examples JavaScript Examples HTML DOM Examples XML DOM Examples AJAX Examples ASP.NET Examples Razor Examples ASP Examples SVG Examples
Quizzes
HTML Quiz HTML5 Quiz XHTML Quiz C SS Quiz JavaScript Quiz jQuery Quiz XML Quiz ASP Quiz PHP Quiz SQL Quiz
Color Picke
Statistics
RE P O RT E RRO R
HO ME
TO P
P RI N T
FO RU M
A BO U T
W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use and privacy policy. C opyright 1999-2013 by Refsnes Data. All Rights Reserved.
w3schools.com/css/css_float.asp
2/2