Jump to content

How do i indent?


Evil's little friend

Recommended Posts

I haven't done any HTML in years, but I found this on the interwebs:

 

For indenting text or a paragraph, the most commonly recommended method would be to use CSS. Below are different examples of how CSS can be used to indent text. Each of these examples below would be placed in-between your <head></head> HTML tags.

 

The example below would create a style class named "tab" that would indent the text and paragraph 40 pixels from the left.

 

<style>

<!--

.tab { margin-left: 40px; }

-->

</style>

 

Once the above code is in-between your <head> tags you can use it at any point by adding it to your paragraph (<p>) tags as shown below.

 

<p class="tab">This is a tab</p>

Link to comment
Share on other sites

What she said there is that you have to put this

<style>

<!--

.tab { margin-left: 40px; }

-->

</style>

 

Between your style tabs (I think you already have them, they are your CSS). It basically means you created a function, and every time you enter that function the first sentence starts 40 pixels from the start of the page (therefore indenting)

 

Every time you want to start a new paragraph, instead of <p>your information here</p>, enter <p class="tab">your information here</p> .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...