From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pl/web/css/float/index.html | 116 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 files/pl/web/css/float/index.html (limited to 'files/pl/web/css/float/index.html') diff --git a/files/pl/web/css/float/index.html b/files/pl/web/css/float/index.html new file mode 100644 index 0000000000..0c8a73f00d --- /dev/null +++ b/files/pl/web/css/float/index.html @@ -0,0 +1,116 @@ +--- +title: float +slug: Web/CSS/float +tags: + - CSS + - 'CSS:Dokumentacje' + - Dokumentacje + - Wszystkie_kategorie +translation_of: Web/CSS/float +--- +

{{ CSSRef() }}

+ +

Podsumowanie

+ +

Własność float określa, że element powinien być wyjęty z normalnego przepływu i umieszczony przy lewej lub prawej stronie zawierającego go kontenera, zaś tekst i elementy liniowe będą zawijały się wokół niego.

+ + + +

Element pływający jest jedynym, gdzie wartość wyliczona float nie jest równa none.

+ +

Zauważ, że, jeśli odwołujesz się do tej wartości z JavaScript jako elementu obiektu element.style, musisz oznaczyć to cssFloat (zobacz listę na DOM:CSS). Zwróć też uwagę, że IE nazywa to styleFloat.

+ +

Składnia

+ +

float: left | right | none | inherit

+ +

Wartości

+ + + +

Przykłady

+ +

Zobacz przykład

+ +
<html>
+ <head>
+  <style type="text/css">
+   b
+   {
+     font-size: 25px;
+     float:right;
+   }
+  </style>
+ </head>
+ <body>
+
+  <p>
+    <b>HELLO!</b>
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+    To jest jakiś tekst. To jest jakiś tekst. To jest jakiś tekst.
+  </p>
+
+</body>
+</html>
+
+ +

Notatki

+ +

TODO: Notatka powinna wyjaśniać, jak elementy pływające są pozycjonowane. Wzmianka o block formatting context.

+ +

Specyfikacje

+ + + +

Zgodność z przeglądarką

+ + + + + + + + + + + + + + + + + + + + +
PrzeglądarkaNajniższa wersja
Internet Explorer4
Netscape4
Opera3.5
+ +

Zobacz także

+ +

{{ Cssxref("clear") }}, {{ Cssxref("display") }}, {{ Cssxref("position") }}

+ +
 
+ +

{{ languages( { "en": "en/CSS/float", "es": "es/CSS/float", "fr": "fr/CSS/float" } ) }}

-- cgit v1.2.3-54-g00ecf