aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/web/css/display/index.html
blob: db3e3150d1d98a86d70c8234bd14b4d8bd22d878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
---
title: display
slug: Web/CSS/display
tags:
  - CSS
  - CSS Display
  - Propriedade de CSS
translation_of: Web/CSS/display
---
<div>{{CSSRef}}</div>

<p>Esta propriedade <strong><code>display</code></strong> de CSS especifica o tipo de caixa de renderização utilizado para um elemento. Em HTML, os valores da propriedade <code>display</code> predefinidos têm o seu comportamento descrito nas especificações de HTML ou de uma folha de estilo predefinida do navegador ou do utilizador. O valor predefinido no XML é  <code>inline</code>, incluindo os elementos de <a href="/pt-PT/docs/Web/SVG">SVG</a> .</p>

<p>Em adição aos diferentes tipos de caixa de exibição, o valor <code>none</code> deixa-o desativar a exibição de um elemento; quando utiliza <code>none</code>, todos os elementos descendentes também têm as suas exibições desativadas. O documento é renderizado como se o elemento não existisse na árvore do documento.</p>

<pre class="brush:css no-line-numbers">/* &lt;display-outside&gt; values */
display: block;
display: inline;
display: run-in;

/* &lt;display-inside&gt; values */
display: flow;
display: flow-root;
display: table;
display: flex;
display: grid;
display: ruby;
display: subgrid;

/* &lt;display-outside&gt; plus &lt;display-inside&gt; values */
display: block flow;
display: inline table;
display: flex run-in;

/* &lt;display-listitem&gt; values */
display: list-item;
display: list-item block;
display: list-item inline;
display: list-item flow;
display: list-item flow-root;
display: list-item block flow;
display: list-item block flow-root;
display: flow list-item block;

/* &lt;display-internal&gt; values */
display: table-row-group;
display: table-header-group;
display: table-footer-group;
display: table-row;
display: table-cell;
display: table-column-group;
display: table-column;
display: table-caption;
display: ruby-base;
display: ruby-text;
display: ruby-base-container;
display: ruby-text-container;

/* &lt;display-box&gt; values */
display: contents;
display: none;

/* &lt;display-legacy&gt; values */
display: inline-block;
display: inline-table;
display: inline-flex;
display: inline-grid;

/* Global values */
display: inherit;
display: initial;
display: unset;
</pre>

<p>{{cssinfo}}</p>

<h2 id="Sintaxe" name="Sintaxe">Sintaxe</h2>

<p>A propriedade <code>display</code> é especificada utilizando os valores chave. Os valores chave são agrupados em seis categorias:</p>

<ul>
 <li><code><a href="#display-outside">&lt;display-outside&gt;</a></code></li>
 <li><code><a href="#display-inside">&lt;display-inside&gt;</a></code></li>
 <li><code><a href="#display-listitem">&lt;display-listitem&gt;</a></code></li>
 <li><code><a href="#display-internal">&lt;display-internal&gt;</a></code></li>
 <li><code><a href="#display-box">&lt;display-box&gt;</a></code></li>
 <li><code><a href="#display-legacy">&lt;display-legacy&gt;</a></code></li>
</ul>

<p>Currently it's best to specify <code>display</code> using a single keyword; although the latest specifications allow you to combine some keywords, this is not yet well supported by browsers.</p>

<h3 id="Valores">Valores</h3>

<dl>
 <dt><a id="display-outside" name="display-outside"><code>&lt;display-outside&gt;</code></a></dt>
 <dd>These keywords specify the element’s outer display type, which is essentially its role in flow layout. They are defined as follows:
 <table class="standard-table">
  <thead>
   <tr>
    <td class="header">Valor</td>
    <td class="header">Descrição</td>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td><code>block</code></td>
    <td>The element generates a block element box.</td>
   </tr>
   <tr>
    <td><code>inline</code></td>
    <td>The element generates one or more inline element boxes.</td>
   </tr>
   <tr>
    <td><code>run-in</code> {{experimental_inline}}</td>
    <td>The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements. That is:
     <ul>
      <li>If the run-in box contains a block box, same as block.</li>
      <li>If a block box follows the run-in box, the run-in box becomes the first inline box of the block box.</li>
      <li>If an inline box follows, the run-in box becomes a block box.</li>
     </ul>
    </td>
   </tr>
  </tbody>
 </table>
 </dd>
 <dt><a id="display-inside" name="display-inside"><code>&lt;display-inside&gt;</code></a></dt>
 <dd>These keywords specify the element’s inner display type, which defines the type of formatting context that lays out its contents (assuming it is a non-replaced element). They are defined as follows:
 <table class="standard-table">
  <thead>
   <tr>
    <td class="header">Value</td>
    <td class="header">Description</td>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td><code>flow</code> {{experimental_inline}}</td>
    <td>The element lays out its contents using flow layout (block-and-inline layout).
     <p>If its outer display type is inline or run-in, and it is participating in a block or inline formatting context, then it generates an inline box. Otherwise it generates a block container box.</p>

     <p>Depending on the value of other properties (such as {{cssxref("position")}}, {{cssxref("float")}}, or {{cssxref("overflow")}}) and whether it is itself participating in a block or inline formatting context, it either establishes a new <a href="/en-US/docs/Web/Guide/CSS/Block_formatting_context">block formatting context</a> for its contents or integrates its contents into its parent formatting context.</p>
    </td>
   </tr>
   <tr>
    <td><code>flow-root</code> {{experimental_inline}}</td>
    <td>The element generates a block element box that establishes a new <a href="/en-US/docs/Web/Guide/CSS/Block_formatting_context">block formatting context</a>.</td>
   </tr>
   <tr>
    <td><code>table</code></td>
    <td>These elements behave like {{HTMLElement("table")}} HTML elements. It defines a block-level box.</td>
   </tr>
   <tr>
    <td><code>flex</code></td>
    <td>The element behaves like a block element and lays out its content according to the <a href="/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout">flexbox model</a>.</td>
   </tr>
   <tr>
    <td><code>grid</code></td>
    <td>The element behaves like a block element and lays out its content according to the grid model.</td>
   </tr>
   <tr>
    <td><code>subgrid</code> {{experimental_inline}}</td>
    <td>If the parent element has <code>display:grid</code>, the element itself and its content are laid out according to the grid model.</td>
   </tr>
   <tr>
    <td><code>ruby</code> {{experimental_inline}}</td>
    <td>The element behaves like an inline element and lays out its content according to the ruby formatting model. It behaves like the corresponding {{HTMLElement("ruby")}} HTML elements.</td>
   </tr>
  </tbody>
 </table>
 </dd>
 <dt><a id="display-listitem" name="display-listitem"><code>&lt;display-listitem&gt;</code></a></dt>
 <dd>
 <p>The element generates a block box for the content and a separate list-item inline box.</p>

 <p>If no <code>&lt;display-inside&gt;</code> value is specified, the principal box’s inner display type defaults to <code>flow</code>. If no <code>&lt;display-outside&gt;</code> value is specified, the principal box’s outer display type defaults to <code>block</code>.</p>
 </dd>
 <dt><a id="display-internal" name="display-internal"><code>&lt;display-internal&gt;</code></a></dt>
 <dd>
 <p>Some layout models, such as <span class="css">table</span> and ruby, have a complex internal structure, with several different roles that their children and descendants can fill. This section defines those "internal" display values, which only have meaning within that particular layout mode.</p>

 <p>Unless otherwise specified, both the inner display type and the outer display type of elements using these display values are set to the given keyword.</p>

 <table class="standard-table">
  <thead>
   <tr>
    <td class="header">Valor</td>
    <td class="header">Descrição</td>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td><code>table-row-group</code></td>
    <td>These elements behave like {{HTMLElement("tbody")}} HTML elements</td>
   </tr>
   <tr>
    <td><code>table-header-group</code></td>
    <td>These elements behave like {{HTMLElement("thead")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-footer-group</code></td>
    <td>These elements behave like {{HTMLElement("tfoot")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-row</code></td>
    <td>These elements behave like {{HTMLElement("tr")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-cell</code></td>
    <td>These elements behave like {{HTMLElement("td")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-column-group</code></td>
    <td>These elements behave like {{HTMLElement("colgroup")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-column</code></td>
    <td>These elements behave like {{HTMLElement("col")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>table-caption</code></td>
    <td>These elements behave like {{HTMLElement("caption")}} HTML elements.</td>
   </tr>
   <tr>
    <td><code>ruby-base</code> {{experimental_inline}}</td>
    <td>These elements behave like {{HTMLElement("rb")}} elements.</td>
   </tr>
   <tr>
    <td><code>ruby-text</code> {{experimental_inline}}</td>
    <td>These elements behave like {{HTMLElement("rt")}} elements.</td>
   </tr>
   <tr>
    <td><code>ruby-base-container</code> {{experimental_inline}}</td>
    <td>These elements behave like {{HTMLElement("rbc")}} elements generated as anonymous boxes.</td>
   </tr>
   <tr>
    <td><code>ruby-text-container</code> {{experimental_inline}}</td>
    <td>These elements behave like {{HTMLElement("rtc")}} elements.</td>
   </tr>
  </tbody>
 </table>
 </dd>
 <dt><a id="display-box" name="display-box"><code>&lt;display-box&gt;</code></a></dt>
 <dd>These values define whether an element generates display boxes at all.
 <table class="standard-table">
  <thead>
   <tr>
    <td class="header">Valor</td>
    <td class="header">Descrição</td>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td><code>contents</code> {{experimental_inline}}</td>
    <td>These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes.</td>
   </tr>
   <tr>
    <td><code>none</code></td>
    <td>
     <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.</p>

     <p>To have an element take up the space that it would normally take, but without actually rendering anything, use the {{cssxref("visibility")}} property instead.</p>
    </td>
   </tr>
  </tbody>
 </table>
 </dd>
 <dt><a id="display-legacy" name="display-legacy"><code>&lt;display-legacy&gt;</code></a></dt>
 <dd>CSS 2 used a single-keyword syntax for the <code>display</code> property, requiring separate keywords for block-level and inline-level variants of the same layout mode. They are defined as follows:
 <table class="standard-table">
  <thead>
   <tr>
    <td class="header">Valor</td>
    <td class="header">Descrição</td>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td><code>inline-block</code></td>
    <td>
     <p>The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would)</p>

     <p>It is equivalent to <code>inline flow-root</code>.</p>
    </td>
   </tr>
   <tr>
    <td><code>inline-table</code></td>
    <td>
     <p>The <code>inline-table</code> value does not have a direct mapping in HTML. It behaves like a {{HTMLElement("table")}} HTML element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.</p>

     <p>It is equivalent to <code>inline table</code>.</p>
    </td>
   </tr>
   <tr>
    <td><code>inline-flex</code></td>
    <td>
     <p>The element behaves like an inline element and lays out its content according to the flexbox model.</p>

     <p>It is equivalent to <code>inline flex</code>.</p>
    </td>
   </tr>
   <tr>
    <td><code>inline-grid</code></td>
    <td>The element behaves like an inline element and lays out its content according to the grid model.</td>
   </tr>
  </tbody>
 </table>
 </dd>
</dl>

<h3 id="Sintaxe_formal">Sintaxe formal</h3>

<pre class="syntaxbox">{{csssyntax}}</pre>

<h2 id="Exemplos">Exemplos</h2>

<h3 id="Hide_element" name="Hide_element">Elementos <em>Hide</em></h3>

<h4 id="Conteúdo_de_HTML">Conteúdo de HTML</h4>

<pre class="brush: html">&lt;p&gt;Visible text&lt;/p&gt;
&lt;p class="secret"&gt;Invisible text&lt;/p&gt;</pre>

<h4 id="Conteúdo_de_CSS">Conteúdo de CSS</h4>

<pre class="brush: css">p.secret {
  display: none;
}</pre>

<h3 id="Resultado">Resultado</h3>

<p>{{EmbedLiveSample("Hide_element", 300, 60)}}</p>

<p><a href="/samples/cssref/display.html">View Live Examples</a></p>

<h2 id="Specifications" name="Specifications">Especificações</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Especificação</th>
   <th scope="col">Estado</th>
   <th scope="col">Comentário</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Display', '#the-display-properties', 'display')}}</td>
   <td>{{Spec2('CSS3 Display')}}</td>
   <td>Added <code>run-in</code>, <code>flow</code>, <code>flow-root</code>, <code>contents</code>, and multi-keyword values.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Ruby', '#ruby-display', 'display')}}</td>
   <td>{{Spec2('CSS3 Ruby')}}</td>
   <td>Added <code>ruby</code>, <code>ruby-base</code>, <code>ruby-text</code>, <code>ruby-base-container</code>, and <code>ruby-text-container</code>.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Grid', '#grid-containers', 'display')}}</td>
   <td>{{Spec2('CSS3 Grid')}}</td>
   <td>Added the grid box model values.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Flexbox', '#flex-containers', 'display')}}</td>
   <td>{{Spec2('CSS3 Flexbox')}}</td>
   <td>Added the flexible box model values.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS2.1', 'visuren.html#display-prop', 'display')}}</td>
   <td>{{Spec2('CSS2.1')}}</td>
   <td>Added the table model values and <code>inline-block<em>.</em></code></td>
  </tr>
  <tr>
   <td>{{SpecName('CSS1', '#display', 'display')}}</td>
   <td>{{Spec2('CSS1')}}</td>
   <td>Initial definition. Basic values: <code>none</code>, <code>block</code>, <code>inline</code>, and <code>list-item</code>.</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilidade_de_navegador">Compatibilidade de navegador</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Funcionalidade</th>
   <th>Chrome</th>
   <th>Edge</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td><code>none</code>, <code>inline</code> and <code>block</code></td>
   <td>1.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.0")}}</td>
   <td>4.0</td>
   <td>7.0</td>
   <td>1.0 (85)</td>
  </tr>
  <tr>
   <td><code>inline-block</code></td>
   <td>1.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.9")}}</td>
   <td>5.5<sup>[4]</sup></td>
   <td>7.0</td>
   <td>1.0 (85)</td>
  </tr>
  <tr>
   <td><code>list-item</code></td>
   <td>1.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.0")}}</td>
   <td>6.0</td>
   <td>7.0</td>
   <td>1.0 (85)</td>
  </tr>
  <tr>
   <td rowspan="2"><code>run-in</code> {{experimental_inline}}</td>
   <td>1.0 [5]</td>
   <td rowspan="2">{{CompatNo}}</td>
   <td rowspan="2">{{CompatNo}}</td>
   <td rowspan="2">8.0</td>
   <td>7.0</td>
   <td>1.0 (85)<sup>[5]</sup></td>
  </tr>
  <tr>
   <td>4.0 Removed in 32</td>
   <td>Not Blink versions (15 upwards)</td>
   <td>5.0 (532.5) Removed in 8.0</td>
  </tr>
  <tr>
   <td><code>inline-table</code></td>
   <td>1.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.9")}}</td>
   <td>8.0</td>
   <td>7.0</td>
   <td>1.0 (85)</td>
  </tr>
  <tr>
   <td><code>table</code>, <code>table-cell</code>, <code>table-column</code>, <code>table-column-group</code>, <code>table-header-group</code>, <code>table-row-group</code>, <code>table-footer-group</code>, <code>table-row</code>, and <code>table-caption</code></td>
   <td>1.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.0")}}</td>
   <td>8.0</td>
   <td>
    <p>7.0</p>
   </td>
   <td>1.0 (85)</td>
  </tr>
  <tr>
   <td><code>flex</code></td>
   <td>
    <p>21.0{{property_prefix("-webkit")}}</p>

    <p>29.0</p>
   </td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("18.0")}}<sup>[1]</sup><br>
    {{CompatGeckoDesktop("20.0")}}</td>
   <td>
    <p>10{{property_prefix("-ms")}}<sup><font size="2">[8]</font></sup><br>
     11</p>
   </td>
   <td>12.50</td>
   <td>
    <p>6.1{{property_prefix("-webkit")}}</p>

    <p>9.0</p>
   </td>
  </tr>
  <tr>
   <td><code>inline-flex</code></td>
   <td>21.0{{property_prefix("-webkit")}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("18.0")}}<sup>[1]</sup><br>
    {{CompatGeckoDesktop("20.0")}}</td>
   <td>10{{property_prefix("-ms")}}<sup><font size="2">[8]</font></sup><br>
    11</td>
   <td>12.50</td>
   <td>6.1{{property_prefix("-webkit")}}</td>
  </tr>
  <tr>
   <td><code>grid</code> {{experimental_inline}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatVersionUnknown}}{{property_prefix("-ms")}}</td>
   <td>{{CompatGeckoDesktop("45.0")}}<sup>[6]</sup></td>
   <td>10.0{{property_prefix("-ms")}}</td>
   <td>{{CompatOpera(44)}}</td>
   <td>TP</td>
  </tr>
  <tr>
   <td><code>inline-grid</code> {{experimental_inline}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatVersionUnknown}}{{property_prefix("-ms")}}</td>
   <td>{{CompatGeckoDesktop("45.0")}}<sup>[6]</sup></td>
   <td>10.0{{property_prefix("-ms")}}</td>
   <td>{{CompatOpera(44)}}</td>
   <td>TP</td>
  </tr>
  <tr>
   <td><code>subgrid</code> {{experimental_inline}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>ruby</code>, <code>ruby-base</code>, <code>ruby-text</code>, <code>ruby-base-container</code>, <code>ruby-text-container</code> {{experimental_inline}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("34.0")}}<sup>[3]</sup></td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>contents</code> {{experimental_inline}}</td>
   <td>{{CompatChrome(58)}}<sup>[7]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop("37")}}<sup>[2]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>flow-root</code></td>
   <td>{{CompatChrome(58)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoDesktop("53.0")}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatOpera(45)}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android Webview</th>
   <th>Chrome for Android</th>
   <th>Edge</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>7.0{{property_prefix("-webkit")}}</td>
  </tr>
  <tr>
   <td><code>grid</code> {{experimental_inline}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatOperaMobile(44)}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>inline-grid</code> {{experimental_inline}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatChrome(57)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatOperaMobile(44)}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>flow-root</code></td>
   <td>{{CompatChrome(58)}}</td>
   <td>{{CompatChrome(58)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatOperaMobile(45)}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] To activate flexbox support, for Firefox 18 and 19, the user has to change the about:config preference "layout.css.flexbox.enabled" to <code>true</code>. Multi-line flexbox are supported since Firefox 28.</p>

<p>[2] Before Firefox 37, the <code>contents</code> value was disabled by default, and could be enabled by setting the <code>layout.css.display-contents.enabled</code> pref to <code>true</code>. In Firefox 37, it was enabled by default, and in Firefox 53 the pref was removed altogether.</p>

<p>[3] CSS Ruby support is behind pref "layout.css.ruby.enabled". The user has to change this pref to true to activate this.</p>

<p>[4] In IE &lt; 8, natural inline elements only.</p>

<p>[5] Not before inline-elements.</p>

<p>[6] CSS Grid support is unprefixed in Nightly/Alpha builds and behind pref "layout.css.grid.enabled" in Beta/release builds.</p>

<p>[7] In Chrome, the <code>contents</code> value is currently disabled by default, but can be enabled with the "Experimental Web Platform features" flag.</p>

<p>[8] In IE 10, only special prefixed values, <code>-ms-flexbox</code> and <code>-ms-inline-flexbox</code>, are recognized.</p>

<h2 id="Consulte_também">Consulte também</h2>

<ul>
 <li>{{Cssxref("visibility")}}, {{Cssxref("float")}}, {{Cssxref("position")}}</li>
 <li>{{Cssxref("flex")}}</li>
</ul>

<div id="SL_balloon_obj" style="display: block;">
<div class="SL_ImTranslatorLogo" id="SL_button" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%; display: block; opacity: 0; left: -8px; top: -25px; transition: visibility 2s ease 0s, opacity 2s linear 0s;"> </div>

<div id="SL_shadow_translation_result2" class="hidden"> </div>

<div id="SL_shadow_translator" class="hidden">
<div id="SL_planshet">
<div id="SL_arrow_up" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;"> </div>

<div id="SL_Bproviders">
<div class="SL_BL_LABLE_ON" id="SL_P0" title="Google">G</div>

<div class="SL_BL_LABLE_ON" id="SL_P1" title="Microsoft">M</div>

<div class="SL_BL_LABLE_ON" id="SL_P2" title="Translator">T</div>
</div>

<div id="SL_alert_bbl" class="hidden">
<div id="SLHKclose" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;"> </div>

<div id="SL_alert_cont"> </div>
</div>

<div id="SL_TB">
<table id="SL_tables">
 <tbody>
  <tr>
   <td class="SL_td"><input></td>
   <td class="SL_td"><select><option value="auto">Detectar idioma</option><option value="af">Africâner</option><option value="sq">Albanês</option><option value="de">Alemão</option><option value="ar">Arabe</option><option value="hy">Armênio</option><option value="az">Azerbaijano</option><option value="eu">Basco</option><option value="bn">Bengali</option><option value="be">Bielo-russo</option><option value="my">Birmanês</option><option value="bs">Bósnio</option><option value="bg">Búlgaro</option><option value="ca">Catalão</option><option value="kk">Cazaque</option><option value="ceb">Cebuano</option><option value="ny">Chichewa</option><option value="zh-CN">Chinês (Simp)</option><option value="zh-TW">Chinês (Trad)</option><option value="si">Cingalês</option><option value="ko">Coreano</option><option value="ht">Crioulo haitiano</option><option value="hr">Croata</option><option value="da">Dinamarquês</option><option value="sk">Eslovaco</option><option value="sl">Esloveno</option><option value="es">Espanhol</option><option value="eo">Esperanto</option><option value="et">Estoniano</option><option value="fi">Finlandês</option><option value="fr">Francês</option><option value="gl">Galego</option><option value="cy">Galês</option><option value="ka">Georgiano</option><option value="el">Grego</option><option value="gu">Gujarati</option><option value="ha">Hauça</option><option value="iw">Hebraico</option><option value="hi">Hindi</option><option value="hmn">Hmong</option><option value="nl">Holandês</option><option value="hu">Húngaro</option><option value="ig">Igbo</option><option value="id">Indonésio</option><option value="en">Inglês</option><option value="yo">Ioruba</option><option value="ga">Irlandês</option><option value="is">Islandês</option><option value="it">Italiano</option><option value="ja">Japonês</option><option value="jw">Javanês</option><option value="kn">Kannada</option><option value="km">Khmer</option><option value="lo">Laosiano</option><option value="la">Latim</option><option value="lv">Letão</option><option value="lt">Lituano</option><option value="mk">Macedônico</option><option value="ml">Malaiala</option><option value="ms">Malaio</option><option value="mg">Malgaxe</option><option value="mt">Maltês</option><option value="mi">Maori</option><option value="mr">Marathi</option><option value="mn">Mongol</option><option value="ne">Nepalês</option><option value="no">Norueguês</option><option value="fa">Persa</option><option value="pl">Polonês</option><option value="pt">Português</option><option value="pa">Punjabi</option><option value="ro">Romeno</option><option value="ru">Russo</option><option value="sr">Sérvio</option><option value="st">Sesotho</option><option value="so">Somália</option><option value="sw">Suaíli</option><option value="su">Sudanês</option><option value="sv">Sueco</option><option value="tg">Tadjique</option><option value="tl">Tagalo</option><option value="th">Tailandês</option><option value="ta">Tâmil</option><option value="cs">Tcheco</option><option value="te">Telugo</option><option value="tr">Turco</option><option value="uk">Ucraniano</option><option value="ur">Urdu</option><option value="uz">Uzbeque</option><option value="vi">Vietnamita</option><option value="yi">Yiddish</option><option value="zu">Zulu</option></select></td>
   <td class="SL_td">
    <div id="SL_switch_b" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Alternar Idiomas"> </div>
   </td>
   <td class="SL_td"><select><option value="af">Africâner</option><option value="sq">Albanês</option><option value="de">Alemão</option><option value="ar">Arabe</option><option value="hy">Armênio</option><option value="az">Azerbaijano</option><option value="eu">Basco</option><option value="bn">Bengali</option><option value="be">Bielo-russo</option><option value="my">Birmanês</option><option value="bs">Bósnio</option><option value="bg">Búlgaro</option><option value="ca">Catalão</option><option value="kk">Cazaque</option><option value="ceb">Cebuano</option><option value="ny">Chichewa</option><option value="zh-CN">Chinês (Simp)</option><option value="zh-TW">Chinês (Trad)</option><option value="si">Cingalês</option><option value="ko">Coreano</option><option value="ht">Crioulo haitiano</option><option value="hr">Croata</option><option value="da">Dinamarquês</option><option value="sk">Eslovaco</option><option value="sl">Esloveno</option><option value="es">Espanhol</option><option value="eo">Esperanto</option><option value="et">Estoniano</option><option value="fi">Finlandês</option><option value="fr">Francês</option><option value="gl">Galego</option><option value="cy">Galês</option><option value="ka">Georgiano</option><option value="el">Grego</option><option value="gu">Gujarati</option><option value="ha">Hauça</option><option value="iw">Hebraico</option><option value="hi">Hindi</option><option value="hmn">Hmong</option><option value="nl">Holandês</option><option value="hu">Húngaro</option><option value="ig">Igbo</option><option value="id">Indonésio</option><option selected value="en">Inglês</option><option value="yo">Ioruba</option><option value="ga">Irlandês</option><option value="is">Islandês</option><option value="it">Italiano</option><option value="ja">Japonês</option><option value="jw">Javanês</option><option value="kn">Kannada</option><option value="km">Khmer</option><option value="lo">Laosiano</option><option value="la">Latim</option><option value="lv">Letão</option><option value="lt">Lituano</option><option value="mk">Macedônico</option><option value="ml">Malaiala</option><option value="ms">Malaio</option><option value="mg">Malgaxe</option><option value="mt">Maltês</option><option value="mi">Maori</option><option value="mr">Marathi</option><option value="mn">Mongol</option><option value="ne">Nepalês</option><option value="no">Norueguês</option><option value="fa">Persa</option><option value="pl">Polonês</option><option value="pt">Português</option><option value="pa">Punjabi</option><option value="ro">Romeno</option><option value="ru">Russo</option><option value="sr">Sérvio</option><option value="st">Sesotho</option><option value="so">Somália</option><option value="sw">Suaíli</option><option value="su">Sudanês</option><option value="sv">Sueco</option><option value="tg">Tadjique</option><option value="tl">Tagalo</option><option value="th">Tailandês</option><option value="ta">Tâmil</option><option value="cs">Tcheco</option><option value="te">Telugo</option><option value="tr">Turco</option><option value="uk">Ucraniano</option><option value="ur">Urdu</option><option value="uz">Uzbeque</option><option value="vi">Vietnamita</option><option value="yi">Yiddish</option><option value="zu">Zulu</option></select></td>
   <td class="SL_td">
    <div id="SL_TTS_voice" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Ouça"> </div>
   </td>
   <td class="SL_td">
    <div class="SL_copy" id="SL_copy" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Copiar"> </div>
   </td>
   <td class="SL_td">
    <div id="SL_bbl_font_patch"> </div>

    <div class="SL_bbl_font" id="SL_bbl_font" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Tamanho da fonte"> </div>
   </td>
   <td class="SL_td">
    <div id="SL_bbl_help" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Ajuda"> </div>
   </td>
   <td class="SL_td">
    <div class="SL_pin_off" id="SL_pin" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Fixar a janela de pop-up"> </div>
   </td>
  </tr>
 </tbody>
</table>
</div>
</div>

<div id="SL_shadow_translation_result" style=""> </div>

<div class="SL_loading" id="SL_loading" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;"> </div>

<div id="SL_player2"> </div>

<div id="SL_alert100">A função de fala é limitada a 200 caracteres</div>

<div id="SL_Balloon_options" style="background: rgb(255, 255, 255)  repeat scroll 0% 0%;">
<div id="SL_arrow_down" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;"> </div>

<table id="SL_tbl_opt" style="width: 100%;">
 <tbody>
  <tr>
   <td><input></td>
   <td>
    <div id="SL_BBL_IMG" style="background: rgba(0, 0, 0, 0)  repeat scroll 0% 0%;" title="Mostrar o botão do ImTranslator 3 segundos"> </div>
   </td>
   <td><a class="SL_options" title="Mostrar opções">Opções</a> : <a class="SL_options" title="Histórico de tradução">Histórico</a> : <a class="SL_options" title="Comentários">Comentários</a> : <a class="SL_options" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=GD9D8CPW8HFA2" title="Faça sua contribuição">Donate</a></td>
   <td><span id="SL_Balloon_Close" title="Encerrar">Encerrar</span></td>
  </tr>
 </tbody>
</table>
</div>
</div>
</div>