Killersites Community: How do I indent text on my web page or in HTML? - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   siddu 

  • View blog
  • Group: New Members
  • Posts: 6
  • Joined: 11-October 10
  • LocationHyderabad

Posted 21 November 2010 - 11:18 PM

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

#2 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • 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; }
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#3 Guest_Worst Designer

  • Group: Guests

Posted 30 June 2011 - 08:47 AM

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

0

#4 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • LocationChico, CA

Posted 30 June 2011 - 08:56 AM

Worst Designer, on 30 June 2011 - 06:47 AM, said:

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


... You realize the original post was from November 2010, right?
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#5 Guest_Worst Designer

  • Group: Guests

Posted 01 July 2011 - 02:16 AM

Ben, on 30 June 2011 - 08:56 AM, said:

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

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users