Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Support Requests:
Can the margins in htmlarea be changed?



bspeng
New User

Feb 10, 2005, 1:10 PM


Views: 26443
Can the margins in htmlarea be changed?

I'm using htmlarea without status bar or toolbar. The textarea of htmlarea seems to have wide "cell" margins (for lack of a better term). I'd like the text to be tighter to the edge of the input box.

Is this possible?


reg
Novice

Feb 11, 2005, 1:59 PM


Views: 26425
Re: [bspeng] Can the margins in htmlarea be changed?

have you looked at what can be changed in htmlarea.css?

Reg


bspeng
New User

Feb 11, 2005, 3:09 PM


Views: 26417
Re: [reg] Can the margins in htmlarea be changed?

I suppose, but I'd prefer to change only for this htmlarea... and I was pleading for guidance. I'm not even sure where to start, so brute-force method won't be very productive.

but thank you for your question.


reg
Novice

Feb 11, 2005, 3:29 PM


Views: 26412
Re: [bspeng] Can the margins in htmlarea be changed?

If it is for a single htmlarea, then you might want to add the style in your definition, something like the third line in this sample:

editorName.config.statusbar='false';" ;
editorName.config.width='" + Transform(tnWidth) + "';" ;
editorName.config.pageStyle='body { background-color: whitesmoke; color: black; font-family: verdana; font-size: 1em;' ;" ;
editorName.generate(); "

only you'll want to make reference to margins, not colour and fonts

Reg