Skip to main content
Known Participant
Sep 19, 2007 11:15 PM UTC
Question

CSS Styles for DIV tag

I think I posted to a wrong category.
Now I move my question to here...
----------------------------------------------------
Hi all,

I am trying to compile a chm file with some existing html files.
The html files are fine and can be viewed correctly in a browser.

After I compiled, it seems that the styles defined in the css file for the DIV tag cannot be read.
I tried to view the html within RoboHelp and it shows fine.
Only after the chm is generated, it does not show the background file I specified.
I have DIV tag inside the Body tag, not in the Header.

Does Robohelp have a problem translating the CSS styles for the div tag, or is there something weird going on???

Thanks,
Karen

Part of my style sheet for the DIV is similar to the following:
-------------------------------------------------------------------------------
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

MergeThis
Inspiring
Sep 20, 2007 11:24 AM UTC
I believe your image call should be:

background-image: url('tab_b.gif');
background-repeat: repeat-x bottom;

And, of course, the image must be in the same folder as the topic, otherwise, you need to include a relative path to it, such as:

background-image: url('../tabimages/tab_b.gif');


Good luck,
Leon
Translate