The issue seems to be with RoboHelp messing with your code. I might suggest you use a different HTML editor with RoboHelp HTML.
Click Tools > Options. There you may define an editor you have available.
I actually wrote all the code in RH. CSS in Notepad and transfered to RH.
Does RH maybe not like <div> tags? This would be very bad. I found another person with the same problem on google when searching for <?rh-region_start.
Whats up with that. Does RH not like CSS?
Nothing of the sort.
What's happening is that RoboHelp is being ever helpful. Aside from the unexpected code you are seeing, are you saying it's not working as intended?
I ask because oftentimes folks don't like the code RoboHelp inserts, yet it does work just fine once you Generate or Compile.
Here is what happens.
I open up my project in Robohelp. I click to open a file and it opens in Design View. I switch it to Code View and the messed up code is there. If I leave it and publish it....its messed up.
If I fix it in the Code View and switch it to the Design View....then back to Code View...the code is messed up again. Its frustrating.
So every time I open a file, I have to fix that header/footer code and then go ahead with my edit before I generate.
You failed to answer my question.
Is the "messed up" code simply messy from the standpoint of your not liking the way RoboHelp is handling the HTML?
Or is the output somehow screwed up as a result?
Perhaps insert a couple of screen captures showing the "Messed up" and the "Proper" ways?
Am I the only one wondering what exactly is messed up?
Zachary, you do indeed find that your code has changed - but does it impact the output in a way you don't want? Did I miss something about how the topics look after you compile?
If the output is acceptable, I would move on to bigger and better things, and let this little intrusion into your code just slide on....ain't no big thing.
ah, Rick! It's like there was a mind meld over teh IntarWebs.....
No, IT IS messing up my layout. The CSS can't read the div id when Robo help changes it. When I correct it and save it then generate, the layout is fine. But if I ignore the code that RH has changed, the layout is all messed up.
So everytime I open a file...robohelp has AGAIN changed the code for the header and footer I posted above. So I THEN have to go back and correct it, and then save it before I generate again.
I guess this is not an everyday problem. I was hoping it was and something that could have been fixed.
I'm thinking RH doesn't work and play well with external CSS files.
Here is my project. Try to open up a file in RH like stated in the original post....past in:
<div id="header_inner" class="fixed">
<h2>By ESSENCE Healthcare</h2>
then see if it changes it back when you go back to Design view and then back again to Code view.
IMPACT.zip 1.6 MB
I suspect that you're co-opting one of RH's system classes by using "header" as your div class.
I just added the word "top" in a true header section (View > Header), and got this code. Note RH's use of type="header" as its rh-region class ID.
<?rh-region_start type="header" style="width: 100%; position: relative;" ?>
<?rh-region_end type="header" ?>
<p>Type topic text here.</p>
I'd suggest using a different class title instead of "header" (topline, firstline, etc.?).
Thanks. I'll give that a try.
That was it.
Just for folks in the future, RoboHelp does NOT like you to use the Div Id's of "header" and "footer" in an external CSS document. How rude. But I changed it to another relative name and it works fine now.
Thanks for the suggestion.
No more rude than HTML appropriating the head tag for its head elements (scripts, styles, etc.), or CSS appropriating property titles of width, border, etc.
It is what it is...