jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes BlockQuote in Mail reply Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "BlockQuote in Mail reply" Watch "BlockQuote in Mail reply" New topic

BlockQuote in Mail reply

Shamu Somasundaram
Ranch Hand

Joined: Aug 25, 2004
Posts: 41
In my mail application, I am using blockquote for mails in html as follows:

header="<br><br><br><blockquote style=\"PADDING-LEFT: 5px; MARGIN-LEFT: 0px; BORDER-LEFT: #0000ff 2px solid\">
-----Original Message-----\n";
req.setAttribute("body", header +cleanHtml.getContent() + "</blockquote>");

A left border will appear in the original message. But if I want to introduce some text or new line in this original text,
and press enter, the left border should not be dispalyed for the new line.
You can try this as it is available in Gmail when u reply to a mail in html content
I know it is something with css, but can't get the idea. Can anyone help me on how to do this.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Did you try to close the tag where you do not want the line?

I agree. Here's the link: http://aspose.com/file-tools
subject: BlockQuote in Mail reply
jQuery in Action, 3rd edition