How to intend paragraph without <blockquote> in html?

3 replies
  • WEB DESIGN
  • |
How to intend paragraph without <blockquote> in html?
I needed help in intending paragraph without using <blockquote> parameter.
Someone please help me with this.
#&ltblockquote&gt #<blockquote> #html #intend #paragraph
  • Profile picture of the author Karen Blundell
    if you mean to indent here's how you would do it using CSS

    you would put the following code in your <head></head> tags of your HTML page
    Code:
    <style type="text/css">
    <!--
    .indent
       {
       padding-left: 20px;
       padding-right: 20px;
       }
    -->
    </style>
    and then you would reference your paragraphs this way

    Code:
    <p class="indent">Your paragraph text...</p>
    the CSS code above would then indent your paragraphs by 20 pixels.

    Signature
    ---------------
    {{ DiscussionBoard.errors[1278421].message }}
  • OR, you can add a "style" modifer to the <p> you want indented:

    Code:
    <p style="text-indent : 10px;">paragraph to be indented</p>
    OR, you can put all your text you want indented in a styled div:

    Code:
    <div style="text-indent : 10px;">Text to be indented</div>
    {{ DiscussionBoard.errors[1278606].message }}
  • Profile picture of the author GrumpyFarmer
    Or you can use &nbsp; OR use a table OR a transparent image. These are kind of "old-school" methods and the above ones are more "new-school." CSS is usually the way to go.
    {{ DiscussionBoard.errors[1278875].message }}

Trending Topics