mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
58 lines
2.8 KiB
Markdown
58 lines
2.8 KiB
Markdown
---
|
|
extends: _layouts.markdown
|
|
title: "Floats"
|
|
---
|
|
|
|
# Floats
|
|
|
|
<div class="text-xl text-slate-light mb-4">
|
|
Utilities for controlling the wrapping of content around an element.
|
|
</div>
|
|
|
|
@include('_partials.feature-badges', [
|
|
'responsive' => true,
|
|
'customizable' => false,
|
|
'hover' => false,
|
|
'focus' => false
|
|
])
|
|
|
|
<div class="border-t border-grey-lighter">
|
|
<table class="w-full text-left" style="border-collapse: collapse;">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="align-baseline">
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.float-right</td>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">float: right;</td>
|
|
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Moves the element to the right side of its container.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.float-left</td>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">float: left;</td>
|
|
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Moves the element to the left side of its container.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.float-none</td>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">float: none;</td>
|
|
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Removes any previously defined float value.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.clearfix</td>
|
|
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark whitespace-no-wrap">
|
|
&:after {<br>
|
|
content: "";<br>
|
|
display: table;<br>
|
|
clear: both;<br>
|
|
}
|
|
</td>
|
|
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Clear any floats within an element.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|