Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

text-align

Change Revisions

Revision 11714:

Revision 11714 by ziyunfei on

Revision 239024:

Revision 239024 by teoli on

Title:
text-align
text-align
Slug:
CSS/text-align
CSS/text-align
Tags:
css, "CSS Reference"
css, CSS Reference
Content:

Revision 11714
Revision 239024
n10    <h3 id="Summary">n10    <h2 id="Summary">
n12    </h3>n12    </h2>
n16    <ul class="cssprop" style="display:table;padding: 0.4em;borden16    <ul class="cssprop">
>r-left:0.15em solid; background-color:#eeeeff"> 
17      <li style=" display:table-row; padding: 3px; margin:0;">
18        <dfn style=" display:table-cell; padding: 0 5px; border-b
>ottom: none; cursor:inherit;">{{ Xref_cssinitial() }}:</dfn> a na 
>meless value that acts as <code>left</code> if 'direction' is 'lt 
>r', <code>right</code> if 'direction' is 'rtl' 
19      </li>17      <li>
20      <li style=" display:table-row; padding: 3px; margin:0;">18        <dfn>{{ Xref_cssinitial() }}:</dfn> a nameless value that
 > acts as <code>left</code> if 'direction' is 'ltr', <code>right</
 >code> if 'direction' is 'rtl'
21        <dfn style=" display:table-cell; padding: 0 5px; border-b19      </li>
>ottom: none; cursor:inherit;">Applies to:</dfn> block level eleme 
>nts, table cells and inline-blocks 
22      </li>20      <li>
23      <li style=" display:table-row; padding: 3px; margin:0;">21        <dfn>Applies to:</dfn> block level elements, table cells 
 >and inline-blocks
24        <dfn style=" display:table-cell; padding: 0 5px; border-b22      </li>
>ottom: none; cursor:inherit;">{{ Xref_cssinherited() }}:</dfn> ye 
>s 
25      </li>23      <li>
26      <li style=" display:table-row; padding: 3px; margin:0;">24        <dfn>{{ Xref_cssinherited() }}:</dfn> yes
27        <dfn style=" display:table-cell; padding: 0 5px; border-b25      </li>
>ottom: none; cursor:inherit;">Media:</dfn> {{ Xref_cssvisual() }} 
28      </li>26      <li>
29      <li style=" display:table-row; padding: 3px; margin:0;">27        <dfn>Media:</dfn> {{ Xref_cssvisual() }}
30        <dfn style=" display:table-cell; padding: 0 5px; border-b28      </li>
>ottom: none; cursor:inherit;">{{ Xref_csscomputed() }}:</dfn> as  
>specified 
29      <li>
30        <dfn>{{ Xref_csscomputed() }}:</dfn> as specified
n33    <h3 id="Syntax">n33    <h2 id="Syntax">
n35    </h3>n35    </h2>
n103    <h3 id="Examples">n103    <h2 id="Examples">
nn105    </h2>
106    <p>
107      {{ CSSRefExampleLink("text-align") }}
108    </p>
109    <h3 id="Live_Examples">
110      Live Examples
n106    <p>n
107      {{ CSSRefExampleLink("text-align") }}
108    </p>
109    <h4 id="Live_Examples">
110      Live Examples
111    </h4>
n135      <code>margin:auto;&nbsp;</code> or<code>&nbsp; margin:0 autn135      <code>margin:auto;</code>&nbsp;or&nbsp;<code>margin:0 auto;
>o;&nbsp;</code> or&nbsp; <code>margin-left:auto; margin-right:aut></code>&nbsp;or&nbsp; <code>margin-left:auto; margin-right:auto;<
>o;</code>>/code>
n137    <h3 id="Browser_compatibility">n137    <h2 id="Browser_compatibility">
n139    </h3>n139    </h2>
n244    <h3 id="Specifications">n244    <h2 id="Specifications">
n246    </h3>n246    </h2>
n255    <h3 id="See_also">n255    <h2 id="See_also">
t257    </h3>t257    </h2>
258    <p>258    <ul>
259      {{ Cssxref("margin","margin:auto") }}, {{ Cssxref("margin-l259      <li>{{ Cssxref("margin","margin:auto") }}, {{ Cssxref("marg
>eft","margin-left:auto") }}, {{ Cssxref("vertical-align") }}>in-left","margin-left:auto") }}, {{ Cssxref("vertical-align") }}
260      </li>
260    </p>261    </ul>
261    <p>
262      {{ languages( { "de": "de/CSS/text-align", "fr": "fr/CSS/te
>xt-align", "it": "it/CSS/text-align", "zh-cn": "zh-cn/CSS/text-al 
>ign" } ) }} 
263    </p>

Back to History