Word wrapping in html output

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
shwetae
Propeller Head
Posts: 21
Joined: Wed Jul 21, 2010 1:20 pm
Location: Pune,India

Word wrapping in html output

Post by shwetae »

I have my browser size fixed to a certain height and width.
How can I wrap the text so that no horizontal scroll bar is displayed?
I need the text to move to the next line if it does not fit the browser width.

Thanks
Shweta
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Word wrapping in html output

Post by lacastle »

graceangela9

Re: Word wrapping in html output

Post by graceangela9 »

There is coding in Html that is used for word wrapping so check its source code and make changes there.
shwetae
Propeller Head
Posts: 21
Joined: Wed Jul 21, 2010 1:20 pm
Location: Pune,India

Re: Word wrapping in html output

Post by shwetae »

graceangela9 wrote:There is coding in Html that is used for word wrapping so check its source code and make changes there.
Can you please tell me where can I find the word wrapping code?

Thanks
Shweta
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Word wrapping in html output

Post by LTinker68 »

Where is it you need the word wrapping? In the topic area or in the navigation pane?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
shwetae
Propeller Head
Posts: 21
Joined: Wed Jul 21, 2010 1:20 pm
Location: Pune,India

Re: Word wrapping in html output

Post by shwetae »

LTinker68 wrote:Where is it you need the word wrapping? In the topic area or in the navigation pane?
I need word wrapping in the topic area so that when I open my help file,there are no horizontal scroll bars in the output window.

Shweta
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Word wrapping in html output

Post by LTinker68 »

Ok, although I'm not sure why you're getting the horizontal scroll bar. The attribute is "white-space" and its default value ("normal") is to have word wrapping on. If word wrapping is off, then someone set the white-space attribute to nowrap. The easiest thing would be to open the stylesheet file in the Internal Text Editor and do a search on the word nowrap.

Another way someone might force the horizontal scrollbar to appear is if they set a width of more than 100% on one of the tags, like the html or body tag, or h1 or p, etc. Likewise, someone may have inserted inline code or code on the masterpage to have the horizontal bar always appear, but that one is less likely.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Word wrapping in html output

Post by lacastle »

A few possibilities are described here - http://forums.madcapsoftware.com/viewto ... f=9&t=8811
Post Reply