tailwindcss/docs/source/docs/max-width.blade.md
2017-10-31 17:46:38 -04:00

89 lines
5 KiB
Markdown

---
extends: _layouts.documentation
title: "Max-Width"
---
# Max-Width
<div class="text-xl text-slate-light mb-4">
Utilities for setting the maximum width of an element
</div>
@include('_partials.feature-badges', [
'responsive' => true,
'customizable' => true,
'hover' => false,
'focus' => false
])
@include('_partials.work-in-progress')
<div class="border-t border-grey-lighter">
<table class="w-full text-left" style="border-collapse: collapse;">
<colgroup>
<col class="w-1/5">
<col class="w-1/3">
<col>
</colgroup>
<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 font-mono text-xs text-purple-dark">.max-w-xs</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">max-width: 20rem;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the element's maximum width to <code>20rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-sm</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 30rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>30rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-md</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 40rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>40rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-lg</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 50rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>50rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-xl</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 60rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>60rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-2xl</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 70rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>70rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-3xl</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 80rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>80rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-4xl</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 90rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>90rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-5xl</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 100rem;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>100rem</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.max-w-full</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">max-width: 100%;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the element's maximum width to <code>100%</code>.</td>
</tr>
</tbody>
</table>
</div>