Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to indent a normal or a <PRE>....</PRE> text in HTML?

Reply
Thread Tools

How to indent a normal or a <PRE>....</PRE> text in HTML?

 
 
Wladimir Borsov
Guest
Posts: n/a
 
      05-02-2004
Assume I want to publish a longer article on a web page.
One of the paragraphs I want to display with an indent.
Read: All text lines of this paragraph should be displayed with (let's say blanks
from the "normal" left side.

How do I do that without coding "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;" ?

Is there something like
<TAB size=8> ..... </TAB> ?

Wladi

 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      05-02-2004
Wladimir Borsov wrote:

> Assume I want to publish a longer article on a web page.
> One of the paragraphs I want to display with an indent.


<p style="margin-left:4em">This paragraph is indented.</p>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
 
 
 
Raymond Loman
Guest
Posts: n/a
 
      05-04-2004
Folks,

<p>-tag is one of the possibilities. You can also use
the <blockquote>-tag.
See code:
----------------------

<html>
<head></head>

<body>
normal

<blockquote>
this whole text is indented.<br>
the quick brown fox jumps over the lazy dog.<br>
thiss sentencee contains three errors.<br>
<blockquote>
you can even nest the blockquote tag.<br>

</blockquote>
so you have multiple paragraphs.
</blockquote>
</body>
</html>

----------------------

Make your choice. <p> or <blockquote> )

Raymond.
i: http://www.raymondloman.nl
e:

Toby A Inkster <> wrote in message news:< >...
> Wladimir Borsov wrote:
>
> > Assume I want to publish a longer article on a web page.
> > One of the paragraphs I want to display with an indent.

>
> <p style="margin-left:4em">This paragraph is indented.</p>

 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      05-04-2004
On 4 May 2004 00:00:35 -0700, (Raymond Loman)
declared in comp.infosystems.www.authoring.html,alt.html:

> Make your choice. <p> or <blockquote> )


If it's a paragraph, use <p>. If it is a block quote, use <blockquote>.
If it is a paragraph that you want indented, use <p> with appropriate
CSS, as per Toby's post.

BTW: Please don't post upside-down.
http://www.allmyfaqs.com/faq.pl?How_to_post

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      05-04-2004
Raymond Loman wrote:

> <p>-tag is one of the possibilities. You can also use
> the <blockquote>-tag.


Blockquote is good, but only appropriate if the text you're marking up is
a genuine quotation from some external source.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      05-04-2004

"Raymond Loman" <> wrote in message
news: om...
> Folks,
>
> <p>-tag is one of the possibilities. You can also use
> the <blockquote>-tag.


Please don't give any more advice regarding HTML

-Karl


 
Reply With Quote
 
Shawn K. Quinn
Guest
Posts: n/a
 
      05-04-2004
A: Top posting.
Q: What is the most annoying thing on Usenet?

Raymond Loman wrote:

> Folks,
>
> <p>-tag is one of the possibilities. You can also use
> the <blockquote>-tag.


The rendering of BLOCKQUOTE is not even guaranteed to be indentation, and I
don't know how you figure P will usually render indented (unless I am
missing something, it won't).

Again, it's fine to use BLOCKQUOTE for a block quotation, but it's not an
"indent command".

[upside-down fullquote snipped]

--
Shawn K. Quinn
 
Reply With Quote
 
Raymond Loman
Guest
Posts: n/a
 
      05-05-2004
"Karl Groves" <> wrote in message news:<c780p3$otj$>...
> "Raymond Loman" <> wrote in message
> news: om...
> > Folks,
> >
> > <p>-tag is one of the possibilities. You can also use
> > the <blockquote>-tag.

>
> Please don't give any more advice regarding HTML
>
> -Karl


Thanx for your advice.

-Raymond.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MultipartResponse. Servlet generating "normal" web page (pics + text) Paul Smith Java 5 05-22-2012 12:48 PM
gnu indent: how to avoid extra indent? dt C Programming 4 12-31-2006 11:31 AM
Indent text items in a ListBox Web Control in ASP.Net 1.0 lotusshiv ASP .Net Web Controls 0 04-27-2006 05:45 PM
Any Good Freebie Text Editors With Auto Indent Capability? Divvy Ballacks C++ 5 03-30-2006 10:14 PM
How change aesthetics of normal input/text box VB Programmer ASP .Net 3 11-29-2004 03:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57