Monday, May 24, 2010

How do you add an indent to an html code?

I'm trying to make a web page but I've yet to learn how to make indents. And I want to get this site up soon%26gt; It's mostly indenting what people say like in a fanfic, so could some one help me out?

How do you add an indent to an html code?
Load the HTML code into Netscape composer.





You can indent by using the tab key or increase the margin. Netscape does it for you (and if you like, you can look and see what the HTML code is which Netscape will generate for you!)
Reply:You can use a non breaking space %26amp; nbsp ; (With no spaces)





It's best to use CSS: style="text-indent: 10px;"





If it's an enter paragraph you could do this: %26lt;p style="padding-left: 10px;"%26gt;
Reply:%26lt;style type="text/css"%26gt;


p


{


text-indent: 20px


}


%26lt;/style%26gt;





here is the W3 Schools text indent reference page


http://www.w3schools.com/css/pr_text_tex...
Reply:The easiest way is %26lt;BLOCKQUOTE%26gt;Your indented text here%26lt;/BLOCKQUOTE%26gt;.





Alternatively define a CSS class for the indent





%26lt;style type="text/css"%26gt;


.indent {padding-left:10px;}


%26lt;/style%26gt;





%26lt;p class="indent"%26gt;Your text here%26lt;/p%26gt;

sepal

No comments:

Post a Comment