Floats - Tailwind CSS
Có thể bạn quan tâm
| Class | Styles |
|---|---|
| float-right | float: right; |
| float-left | float: left; |
| float-start | float: inline-start; |
| float-end | float: inline-end; |
| float-none | float: none; |
Examples
Floating elements to the right
Use the float-right utility to float an element to the right of its container:
Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.
<article> <img class="float-right ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article>Floating elements to the left
Use the float-left utility to float an element to the left of its container:
Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.
<article> <img class="float-left ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article>Using logical properties
Use the float-start and float-end utilities, which use logical properties to map to either the left or right side based on the text direction:
left-to-right
Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.
right-to-left
ربما يمكننا العيش بدون مكتبات، أشخاص مثلي ومثلك. ربما. بالتأكيد، نحن أكبر من أن نغير العالم، ولكن ماذا عن ذلك الطفل الذي يجلس ويفتح كتابًا الآن في أحد فروع المكتبة المحلية ويجد رسومات للتبول والبول على القطة في القبعة والإخوة الصينيون الخمسة؟ ألا يستحق الأفضل؟ ينظر. إذا كنت تعتقد أن الأمر يتعلق بالغرامات المتأخرة والكتب المفقودة، فمن الأفضل أن تفكر مرة أخرى. يتعلق الأمر بحق ذلك الطفل في قراءة كتاب دون أن يتشوه عقله! أو: ربما يثيرك هذا يا سينفيلد؛ ربما هذه هي الطريقة التي تحصل بها على ركلاتك. أنت ورفاقك الطيبين.
<article> <img class="float-start ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article><articledir="rtl"> <img class="float-start ..." src="/img/mountains.jpg" /> <p>... ربما يمكننا العيش بدون مكتبات، أشخاص مثلي ومثلك. ربما. بالتأكيد</p></article>Disabling a float
Use the float-none utility to reset any floats that are applied to an element:
Maybe we can live without libraries, people like you and me. Maybe. Sure, we're too old to change the world, but what about that kid, sitting down, opening a book, right now, in a branch at the local library and finding drawings of pee-pees and wee-wees on the Cat in the Hat and the Five Chinese Brothers? Doesn't HE deserve better? Look. If you think this is about overdue fines and missing books, you'd better think again. This is about that kid's right to read a book without getting his mind warped! Or: maybe that turns you on, Seinfeld; maybe that's how y'get your kicks. You and your good-time buddies.
<article> <img class="float-none ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article>Responsive design
Prefix a float utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<img class="float-right md:float-left" src="/img/mountains.jpg" />Learn more about using variants in the variants documentation.
Từ khóa » Html Table Column Float Right
-
DIV In
Float Right - Stack Overflow CSS/Table Styles/creates A Floating Table - TAG Index
Display: Table-cell + Float Right Div - CodePen
Bootstrap Table Float Right Code Example
Float - CSS: Cascading Style Sheets - MDN Web Docs
CSS Float Property - W3Schools
HTML Td Tag - W3Schools
Float - Bootstrap
How To Use Float And Columns To Lay Out Content With CSS
Table Row Containing Floats Do Not Float And Makes Row Height Incorrect
How To Center Or Float An HTML Table - Ed2go Blog
» - HTML">
» - HTML
CSS Float Right - EduCBA
Forums - CSS - Two Column Table Float Problem
Copyright © 2022 | Thiết Kế Truyền Hình Cáp Sông Thu