Floating, on the other hand, first came to us in CSS1, based on a capability that had been added by Netscape early in the Web's life. Floating is not exactly positioning, but it certainly isn't normal-flow layout either. Keep a few things in mind with regard to floating elements. In the first place, a floated element is, in some ways, removed from the normal flow of the document, although it still affects the layout. In a manner utterly unique within CSS, floated elements exist almost on their own plane, yet they still have influence over the rest of the document.
Floating Property :
Values
left | right | none | inherit
Initial value
none
Applies to
all elements
Example :
< src="example.gif" style="float: left; margin:25px" alt="example">
No comments:
Post a Comment