How do I indent text on my web page or in HTML?
Page 1 of 1
How do I indent text on my web page or in HTML?
#2
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; }
-- 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
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#3 Guest_Worst Designer
Posted 30 June 2011 - 08:47 AM
to indent a text you may use text indent property
text-indent: 100px;
#4
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
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
Share this topic:
Page 1 of 1

Help











