Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Pretty straightforward, was wondering what the inspiration or precedent for the CSS 'float' concept. I'm not familiar with any other graphic APIs or other layout DSLs that use this concept, but it's such a huge part of HTML layouts. I'm curious if a previous language had a similar concept, or if 'floats' originated from the land of HTML/CSS. Thanks.

share|improve this question
I recall working with floating images in page layout in Microsoft Word and Aldus Pagemaker in the mid to late '80s. The concept of floating images is part of page layout that html adopted. – user40980 Apr 14 '13 at 2:46
It probably goes back to the days of manual typesetting. – p.s.w.g Apr 14 '13 at 2:57

LaTeX has them. Tables and figures are typically floats. They are automatically placed in a good place rather than just wherever in your document you put them. The idea there presumably comes from how figures in books and articles are typically placed where there is room as opposed to just in the text.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.