PDA

View Full Version : the <PRE>tag ?


chelvis
08-27-2002, 07:30 PM
I have a website with some lines start normally and some start indended like following:

Hi My name is so and so and here are some examples of my hobbies
"Gardening which I really like and spend a lot of time

Some times I also do other work like blah blah etc...
Also I like cooking making cakes and sweets. I love those"


Look at the above paragraph Gardening and "Also...." starts inward. How can I do that? Is it possible only with tables? I dont want to use tables then how can I do this?

Vladdy
08-27-2002, 07:37 PM
<p style="margin-left: 20px"> text idented by 20 pixels </p>
<p style="margin-left: 40px"> text idented by 40 pixels </p>

or you can use list tags:

<ul>list header
<li>item 1</li>
<li>item 2</li>
</ul>

redhead
08-27-2002, 07:38 PM
there are several ways to achieve this.

I would use spaces... like so:

Some times I also do other work like blah blah etc... <br>
&amp;nbsp;&amp;nbsp;Also I like cooking making cakes and sweets. I love those"

which would come out as...

Some times I also do other work like blah blah etc...
&nbsp;&nbsp;Also I like cooking making cakes and sweets. I love those"

or you could put it inside a span...

Some times I also do other work like blah blah etc... <br>
<span style="margin-left: 20px">Also I like cooking making cakes and sweets. I love those</span>

which would indent it 20 pixels from the left.
:thumbsup:

whoops... vladdy got there first...

joh6nn
08-27-2002, 10:32 PM
you can also create an indent using text-indent

<P STYLE="text-indent: 3em;">some text</P>