Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using HTMLEditorKit and trying to INDENT, what is the HTML tag for INDENTATION ?  RSS feed

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm using an HTMLEditorKit with HTML tags. since i am newbie to html I wonder if anyone knows how to indent in a text???

My end result suppose to be like this:

Date: Nov 27, 2004 File: dans.txt

The indentation suppose to take place between the date ("Nov 27, 2004") and the word "File"

my code looks like this:
DATE: <font size=4 color=blue>" + getTodaysDate() +"<font size=4 color=black> FILE: <font size=4 color=blue>" + fileName

i guess that somewhere before the word file i suppose to insert an indentation tag, but what is it???

I tired extra spacing - doesn't work
I tried <pre> - no good

anyone???
 
Pritam Barhate
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To best of my knowledge there is no tag for HTML indentation. The common hacks that the web programmers use are
  • Spacer completely transperent GIF images
  • css using div with margins
  • tables with 0 width borders with cell spcing
  • In your case the last solution should be useful.
    may be some thing like this
     
    Peter Primrose
    Ranch Hand
    Posts: 755
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for your reply Pritam Barhate.

    I like your creative solution of inserting a blank gif image.
    do you have any code to show how to do that?

    Thanks again
    Ppr
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!