1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML inline style text-align

Discussion in 'Web Development' started by navyfalcon, Feb 15, 2013.

  1. navyfalcon

    navyfalcon Well-Known Member Verified Member

    Subject: inline style text-align

    Trying to use inline style for alpha & numeric sort.
    It is not working for me. Any suggestions ??

    <dl class="leftcol">
    <dd>Alphabetical Order:</dd>
    </dl>
    <dl class="rightcol">
    <dd>Numerical Order:</dd>
    </dl>
    <dl class="ltcol">
    - - add <style="text-align:left">
    <dd>advanced</dd>
    <dd>algebra</dd>
    <dd>answer</dd>
    <dd>answers</dd>
    <dd>basic</dd>
    </dl>
    <dl class="lmdcol">
    - - add <style="text-align:right">
    <dd>20263</dd>
    <dd>8830</dd>
    <dd>139</dd>
    <dd>285</dd>
    <dd>17062</dd>
    </dl>

    The web page if needed.
    http://freetutorials.name/Reference1/Keyword Country Example.html
    -
    Thank You
    falcon
     
  2. navyfalcon

    navyfalcon Well-Known Member Verified Member

    finally found a way to do it (not necessarily the best)
    .par {
    text-align: left;
    }
    .per{
    text-align: right;
    }
    - - -
    <dl class="par">
    </dl>
    <dl class="per">
    </dl>
    -
    falcon