Jump to content


Photo

How do I indent text on my web page or in HTML?


  • Please log in to reply
4 replies to this topic

#1 siddu

siddu

    New member

  • New Members
  • 6 posts
  • LocationHyderabad

Posted 21 November 2010 - 11:18 PM

How do I indent text on my web page or in HTML?
  • 0

#2 Ben

Ben

    Administrator

  • Administrators
  • 5,656 posts
  • LocationChico, CA

Posted 22 November 2010 - 12:06 AM

There are three ways to do this:

-- add a left margin using CSS
-- add a left padding using CSS
-- add a text-indent (which I believe only indents the first line)

For example:

<p class="indent">Text here... text here... text here..</p>

and in your CSS stylesheet:

.indent { padding-left:20px; }
  • 0
Benjamin Falk
Falken Creative : Twitter

#3 Guest_Worst Designer

Guest_Worst Designer
  • Guests

Posted 30 June 2011 - 08:47 AM

to indent a text you may use text indent property
text-indent: 100px;

  • 0

#4 Ben

Ben

    Administrator

  • Administrators
  • 5,656 posts
  • LocationChico, CA

Posted 30 June 2011 - 08:56 AM

to indent a text you may use text indent property

text-indent: 100px;

... You realize the original post was from November 2010, right?
  • 0
Benjamin Falk
Falken Creative : Twitter

#5 Guest_Worst Designer

Guest_Worst Designer
  • Guests

Posted 01 July 2011 - 02:16 AM

... You realize the original post was from November 2010, right?

Oppss... no i didnt notice.... my mistake
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users