How do I indent a group of text (2 posts)

  1. wmease
    Posted 5 years ago #

    I would like to place a title of some text in the center of a page (which I know how to do) ... and then place several bullets of information under that title but in a left aligned table-like manner.

    I would show an example here but it left justifies everything which is what happens on my web page as well.

    You can go here to see what I would like to do: I would like the text under "In the eCourse you will learn" to be left justified and indented under this title...

    Thanks again in advance for any and all help....

    I am a semi-skilled; non-techie ... please be kind with instructions on how to do this :-)

  2. Lori
    Posted 5 years ago #

    You can do something like this:

    <h2 style="text-align:center">Title</h2>
    <div style="text-align:left;">
    	<ul id="id">
    		<li>List item 1</li>
    		<li>List item 2</li>
    		<li>List item 3</li>
    		<li>List item 4</li>
    	<p>Some more left aligned text.</p>

    If your default text is already aligned left, you can leave out the style="text-align:left;" part.

    If you do this a lot, you can define a css class instead of using inline styles, for example:

    .center { text-align: center; }
    <h2 class="center">Title</h2>

Topic Closed

This topic has been closed to new replies.

About this Topic