background preloader

Html/css

Facebook Twitter

Float: Die Theorie. Holly Bergevon und ich schrieben diesen Artikel ursprünglich für die Community MX Website, eine umfangreiche Ressourcensammlung einschließlich einer Gruppe von Experten im Forum (erfordert Registrierung).

Float: Die Theorie

Die meisten Leute finden das Thema "float" ziemlich Respekt einflößend. Die Theorie dahinter ist nicht leicht zu verstehen und außerdem sagt man, die Bugs seien zahlreich und fies. CSS Introduction. Lesson 13: Floating elements (floats) An element can be floated to the right or to left by using the property float. That is to say that the box with its contents either floats to the right or to the left in a document (or the containing box) (see lesson 9 for a description of the Box model). The following figure illustrates the principle: If we for example would like to have a text wrapping around a picture, the result would be like this: How is it done?