• I’ve got a literary journal so I need some pages indented and others not. On the style sheet I can obviously have text-indent or not. How can I tailor indentation function to specific pages?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Add this style to your page which will add the indent to the each paragraph of the pages..you can change the style and also apply it to the pages..

    <p style=”text-indent: 2em;”>.</p>

    Thanks,

    Shane G.

    It is best to create separate template for those pages which will use indentation and another teamplate for those who don’t use.

    On a template you write:
    <body class="indentation">
    and on the other one:
    <body class="no-indentation">

    in css you will have:

    body.indentation p {text-indent: 10px}

    body.no-indentation p {text-indent: 0}

    So the paragraph will take those specific attributes.

    If you don’t know how to create custom templates, you can find that information here in codex.

    I think there is another solution to create an if statement, depending on pages, to assign class to body. Css will remain the same.

    But solution I gave you is easier.

    Thread Starter pynchon8

    (@pynchon8)

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Indenting Paragraphs’ is closed to new replies.