On Mozilla composer : how to show quoted text in an HTML page ?

F

Frank Olieu

Vinayak said:
Using Mozilla composer, how to show quoted text ?

I'm afraid you'll have to code it manually (in "source view") and use something
like:

<blockquote>
<p>
Quoted text goes here...
</p>
and ... How to decide the indent / margin (in inches or chars) for
quoted text ?

With CSS. Try this on the previous example:

<blockquote style="margin-left: 40px;">
<...>

You may use any of the following units: % , em , px , pt.
You could also use *external CSS*, but this is beyond the scope of your
question, I guess...
 
V

Vinayak

Hi

Using Mozilla composer, how to show quoted text ?

and ... How to decide the indent / margin (in inches or chars) for
quoted text ?


Thanks in advance

Vinayak
 
?

=?ISO-8859-1?Q?G=E9rard_Talbot?=

Vinayak wrote :
Hi

Using Mozilla composer, how to show quoted text ?

Your question is about semantic markup. Either q or blockquote will
render quoted text.

HTML 4.01
Section 9.2.2 Quotations: The BLOCKQUOTE and Q elements
http://www.w3.org/TR/html401/struct/text.html#edef-Q
The difference being "BLOCKQUOTE is for long quotations (block-level
content) and Q is intended for short quotations (inline content) that
don't require paragraph breaks."
and ... How to decide the indent / margin (in inches or chars) for
quoted text ?

Either text-indent or margin

http://www.w3.org/TR/CSS21/box.html#propdef-margin

http://www.w3.org/TR/CSS21/text.html#propdef-text-indent

Note that browser manufacturers will render blockquote with a default
horizontal (left and right) margin.

Gérard
 
F

Frank Olieu

_Vinayak_ skrev | wrote | écrivit (28-11-2005 16:01):
what should I do if I wish to
a) blockquote and also have a border around the quoted text
b) show the quoted text on a different colour background

Here's a sample document. Try it out...
Try to experiment with the values in style"...", to modify the borders, the
colors etc.
I don't know about Composer, but Nvu has a CSS-editor, where this can be done
more easily. (http://www.nvu.com/ free download).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Test</title>
</head>
<body>
<p>Lorem ipsum dolor sit amet. Maecenas dictum, metus at ultricies cursus,
felis elit pretium dolor, in consequat nunc lectus sed est. Fusce eu nisl non
quam dapibus ultricies. Suspendisse mollis molestie elit.</p>

<blockquote style="padding: 1em; border: 1px dashed red; margin: 2em;
background-color: yellow;">

<p>Borders may be 'solid', 'dotted', 'dashed', 'double'... Cursus, felis
elit pretium dolor, in consequat nunc lectus sed est. Suspendisse mollis
molestie elit.</p>

</blockquote>

<p>Vivamus a metus id eros varius mollis. Curabitur hendrerit dui ac tellus.
Pellentesque varius aliquet mi. Donec et lacus nec tortor blandit lobortis.
Vivamus non velit.</p>

</body>
</html>
 
V

Vinayak

Gérard Talbot said:
Vinayak wrote :



Your question is about semantic markup. Either q or blockquote will
render quoted text.

HTML 4.01
Section 9.2.2 Quotations: The BLOCKQUOTE and Q elements
http://www.w3.org/TR/html401/struct/text.html#edef-Q
The difference being "BLOCKQUOTE is for long quotations (block-level
content) and Q is intended for short quotations (inline content) that
don't require paragraph breaks."


Either text-indent or margin

http://www.w3.org/TR/CSS21/box.html#propdef-margin

http://www.w3.org/TR/CSS21/text.html#propdef-text-indent

Note that browser manufacturers will render blockquote with a default
horizontal (left and right) margin.

Gérard


Thanks to all those who answered on this thread

blogger doesn't seem to accept <blockquote> at least it just indents the
para and does not show the quoted text in different background

I shall try <Q> , </Q> an revert

Regards
 
V

Vinayak

Frank said:
Vinayak wrote:




I'm afraid you'll have to code it manually (in "source view") and use something
like:

<blockquote>
<p>
Quoted text goes here...
</p>
</blockquote>

thanks

what should I do if I wish to
a) blockquote and also have a border around the quoted text
b) show the quoted text on a different colour background


TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top