CSS float

CSS places the elements one after the other vertically. float property helps elements to be one beside the other. This property specifies whether a box should float to the left, right, or not at all. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned. It can take 3 values: right | left | none

CSS float, <span>CSS float</span>, KandZ
CSS float, <span>CSS float</span>, KandZ

The result for the above code. Box3 has right floating and it shares the same horizontal space with the next box, box 4

CSS float, <span>CSS float</span>, KandZ

THE END!!!

84510cookie-checkCSS floatCSS float

Related posts

2 Thoughts to “CSS float

Comments are closed.