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

CSS CSS Margin

Discussion in 'Web Development' started by navyfalcon, Jul 23, 2013.

  1. navyfalcon

    navyfalcon Well-Known Member Verified Member

  2. navyfalcon

    navyfalcon Well-Known Member Verified Member

    I tried:
    {margin-left: 2%} and {margin-left: 2px}
    They did not work
    -
    I read about css margins and tried them (I must be missing something)
    thank you
    falcon
     
  3. navyfalcon

    navyfalcon Well-Known Member Verified Member

    finally found out how
    -
    <!DOCTYPE html>
    <html>
    <head>
    <style>
    p.ex1 {margin-left:2cm;}
    </style>
    </head>

    <body>

    <p>A paragraph with no margins specified.</p>
    <p class="ex1">A paragraph with a 2cm left margin.</p>
    <p>A paragraph with no margins specified.</p>

    </body>
    </html>
    -
    Thank You
    falcon
     
  4. navyfalcon

    navyfalcon Well-Known Member Verified Member

    spaces "&nbsp;"
    I use spaces to align the trig functions. I tried inline CSS padding or margins to use instead
    of spaces but they interfere with the internal CSS. Any suggestions on how to use CSS for the
    indent of trig functions ??

    http://freetutorials.name/Reference1/RedCrab Manual.html#anchorT

    trigonometric functions (3.2)
    sin sine, (opposite side / hypotenuse)
    cos cosine, (adjacent side / hypotenuse)
    tan tangent, (opposite side / adjacent side)
    cot cotangent, (adjacent side / opposite side)
    arcsin [1/sin, or sin-1] (hypotenuse / opposite side)
    arccos [1/cos, or cos-1] (hypotenuse / adjacent side)
    arctan [1/tan, or tan-1] (adjacent side / opposite side)
    Transparent (13.6.2.3)
    Note: the spaces do not show up in this display

    Code:
    <a href="#anchor3.2">trigonometric functions</a> (3.2)<br> &nbsp;&nbsp;&nbsp;<strong><a href="http://en.wikipedia.org/wiki/Trigonometric_functions">sin</a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    sine, (opposite side / hypotenuse)<br>&nbsp;&nbsp;&nbsp;<strong><a href="http://www.math10.com/en/algebra/sin-cos-tan-cot.html">cos</a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    cosine, (adjacent side / hypotenuse)<br>&nbsp;&nbsp;&nbsp;<strong><a href="http://library.thinkquest.org/20991/alg2/trig.html">tan</a></strong> &nbsp;&nbsp;    &nbsp;&nbsp;&nbsp;&nbsp; tangent, (opposite side / adjacent side)<br>&nbsp;&nbsp;&nbsp;<strong><a href="http://www.intmath.com/trigonometric-graphs/4-graphs-tangent-cotangent-secant-cosecant.php">cot</a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cotangent, (adjacent side / opposite side)<br><strong>&nbsp;&nbsp;&nbsp;<a href="http://en.wikipedia.org/wiki/List_of_trigonometric_identities">arcsin</a></strong> &nbsp;&nbsp;&nbsp;    [1/sin, or sin<sup>-1</sup>] (hypotenuse / opposite side)<br>&nbsp;&nbsp;&nbsp;<strong><a href="http://www.mathopenref.com/arccos.html">arccos</a></strong> &nbsp;&nbsp;&nbsp;    [1/cos, or cos<sup>-1</sup>] (hypotenuse / adjacent side)<br>&nbsp;&nbsp;&nbsp;<strong><a href="http://hyperphysics.phy-astr.gsu.edu/hbase/ttrig.html">arctan</a></strong> &nbsp;&nbsp;&nbsp;    [1/tan, or tan<sup>-1</sup>] (adjacent side / opposite side)<br>
    -
    Thank You
    falcon