Unable to find why Background Image displaying
Unable to find why Background Image displaying
I have inserted a background image in a div style. I use this in assorted places in my project.
I have now created a drop down text that displays an image. That is working great... except that the image that I used in the div is for some reason displaying as the background of my drop down. This is embedded in a li and as far as I can tell not related to my div anywhere. I have looked everywhere and can't find where this is set. Any suggestions on how to track it down?
Thanks in advance...
I have now created a drop down text that displays an image. That is working great... except that the image that I used in the div is for some reason displaying as the background of my drop down. This is embedded in a li and as far as I can tell not related to my div anywhere. I have looked everywhere and can't find where this is set. Any suggestions on how to track it down?
Thanks in advance...
Re: Unable to find why Background Image displaying
Could you post the relevant part of the stylesheet and the source code of those elements, maybe even embedded in topics?
Re: Unable to find why Background Image displaying
Below is an exerpt from the source code from the topic that contains the drop down text.
<ol>
<li>
<p class="step1">Click on the Add New Patient option.</p>
<MadCap:dropDown>
<MadCap:dropDownHead>
<MadCap:dropDownHotspot class="Drop_Down_Heading">SoundWave displays the Patient Demographics window.</MadCap:dropDownHotspot>
</MadCap:dropDownHead>
<MadCap:dropDownBody>
<p>(<img src="../image/Pat_demographics.jpg" />)</p>
</MadCap:dropDownBody>
</MadCap:dropDown>
</li>
</ol>
<ol MadCap:continue="true">
Following is a screen shot of what it looks like in the .chm file and also the style sheet. Is there a better way to post details from the style sheet? Thanks again.
<ol>
<li>
<p class="step1">Click on the Add New Patient option.</p>
<MadCap:dropDown>
<MadCap:dropDownHead>
<MadCap:dropDownHotspot class="Drop_Down_Heading">SoundWave displays the Patient Demographics window.</MadCap:dropDownHotspot>
</MadCap:dropDownHead>
<MadCap:dropDownBody>
<p>(<img src="../image/Pat_demographics.jpg" />)</p>
</MadCap:dropDownBody>
</MadCap:dropDown>
</li>
</ol>
<ol MadCap:continue="true">
Following is a screen shot of what it looks like in the .chm file and also the style sheet. Is there a better way to post details from the style sheet? Thanks again.
You do not have the required permissions to view the files attached to this post.
Re: Unable to find why Background Image displaying
try:
instead of
chosing "default" results in (not set) and a dropdown IS a div, so that background-image comes in through the inbuilt "inherit" function of style sheets ...
better be definite about it than leaving it to the application ...
Inge
Code: Select all
background-image: noneCode: Select all
background-image: (default)better be definite about it than leaving it to the application ...
Inge
Re: Unable to find why Background Image displaying
Thanks for posting so quick.I had tried that before, and set to None. I set every related style to None. Image still shows up.
How would I know that drop down is a div? They seem totally unrelated? And no div displays in the XML Editor
How would I know that drop down is a div? They seem totally unrelated? And no div displays in the XML Editor
Re: Unable to find why Background Image displaying
True, but in the source of the built help topic you can see sth like this at the beginning of your dropdown:kittim wrote:And no div displays in the XML Editor
Code: Select all
<div class="MCDropDown">
<div class="MCDropDownHead"><a href="javascript:void(0);" class="MCDropDownHotSpot" id="MCDropDownHotSpot_3645221321_0" onclick="FMCDropDown( this ); return false;"><img style="border: none;margin-right: 5px;" src="../../../SkinSupport/DropDownClosed.gif" MadCap:altsrc="../../../SkinSupport/DropDownOpen.gif" class="MCDropDownIcon" onload="if ( typeof( FMCPreloadImage ) == 'function' ) { FMCPreloadImage( '../../../SkinSupport/DropDownOpen.gif' ); }" />
Open your stylesheet in any available text editor: You will findkittim wrote:How would I know that drop down is a div? They seem totally unrelated?
Code: Select all
div.MCDropDownIf that's the case - change the order and try that way.
Stylesheet Editor:
Another point could be the style sheet media you have changed the classes in: is it all "default"? Your dropdown style is ...
And maybe you can see more and find the "collisions" if you uncheck the checkbox "Hide inherited" ...
You do not have the required permissions to view the files attached to this post.
Re: Unable to find why Background Image displaying
OK.... here is the relevant section of my stylesheet. I cannot find it. In any event. Do you see anything about the order in what I have posted here? all references to the dropDown are after the div. Should I try rearranging and putting the div last?
}
div
{
background-image: url('../image/AB_wav_gray.jpg');
background-repeat: no-repeat;
}
MadCap|dropDownHotspot.Drop_Down
{
}
li.indent1
{
left: 25px;
position: inherit;
}
li.system_response
{
color: #99b4d1;
list-style-position: inherit;
list-style-type: none;
}
li.paragraph
{
}
a
{
color: #554b24;
}
td
{
background-image: none;
background-color: #9eb9e5;
}
td.nocolor
{
background-color: #ffffff;
}
table.TableStyle_Heading
{
caption-side: top;
mc-table-style: url('../Resources/TableStyles/NewStyle.css');
}
strong
{
color: #4b8dd2;
font-style: italic;
}
MadCap|dropDownHotspot.Drop_Down_Heading
{
color: #4b8dd2;
background-color: #f0f0f0;
text-indent: 5px;
background-image: none;
}
MadCap|dropDownHead
{
background-color: #f0f0f0;
font-size: 8pt;
font-style: italic;
color: #4b8dd2;
background-image: none;
}
div
{
background-image: url('../image/AB_wav_gray.jpg');
background-repeat: no-repeat;
}
MadCap|dropDownHotspot.Drop_Down
{
}
li.indent1
{
left: 25px;
position: inherit;
}
li.system_response
{
color: #99b4d1;
list-style-position: inherit;
list-style-type: none;
}
li.paragraph
{
}
a
{
color: #554b24;
}
td
{
background-image: none;
background-color: #9eb9e5;
}
td.nocolor
{
background-color: #ffffff;
}
table.TableStyle_Heading
{
caption-side: top;
mc-table-style: url('../Resources/TableStyles/NewStyle.css');
}
strong
{
color: #4b8dd2;
font-style: italic;
}
MadCap|dropDownHotspot.Drop_Down_Heading
{
color: #4b8dd2;
background-color: #f0f0f0;
text-indent: 5px;
background-image: none;
}
MadCap|dropDownHead
{
background-color: #f0f0f0;
font-size: 8pt;
font-style: italic;
color: #4b8dd2;
background-image: none;
Re: Unable to find why Background Image displaying
There's your problem. As i-tietz said, the drop-down effect is inside a DIV. You have a background image specified in the parent DIV tag, so ALL DIVs will have that background image unless you expressly state background-image: none; in all of those child DIVs. Which is a bit trickier with the drop-down DIV since it's generated automatically. You have two options.kittim wrote:div
{
background-image: url('../image/AB_wav_gray.jpg');
background-repeat: no-repeat;
}
First option, remove the background image from the parent DIV and instead create a new DIV class, give it the background image, then apply that DIV class to the DIVs that you want to have the image. All other DIVs won't have the background image.
Second option, add the drop-down DIV's tag to your stylesheet and specify that it not have a background. You could try adding the following code to your stylesheet.
Code: Select all
div.MCDropDown
{
background-image: none;
}Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Unable to find why Background Image displaying
Thanks Lisa,
No only one problem, I am such a newbie to all this and I feel like an idiot asking, but how do I create a new div class.
I think I have it figured out... whew. This program makes me feel like a moron. I haven't developed help in a while and i used Robohelp Classic, with word.
YES!!! It worked. Thanks both of you for your help!
No only one problem, I am such a newbie to all this and I feel like an idiot asking, but how do I create a new div class.
I think I have it figured out... whew. This program makes me feel like a moron. I haven't developed help in a while and i used Robohelp Classic, with word.
YES!!! It worked. Thanks both of you for your help!
-
RamonS
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Unable to find why Background Image displaying
You used RH Classic for Word? Anything is excused after that experience! 
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U

Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: Unable to find why Background Image displaying
There is (was?) nothing wrong with RH, not with "Classic" and not with "HTML". Not for nothing RH was the leader of the pack for years.
If you had used "RH HTML" Flare wouldn't be new to you - they are pretty similar. But I agree that working in Word and working with HTML or even XML and style sheets are very different approaches to producing help. My colleagues have their problems with that too.
I don't know a solution to that problem but "Keep going" and "Keep asking".
AND:
You add a new class be clicking the right mouse button on the DIV in the list of "Styles":
If you had used "RH HTML" Flare wouldn't be new to you - they are pretty similar. But I agree that working in Word and working with HTML or even XML and style sheets are very different approaches to producing help. My colleagues have their problems with that too.
I don't know a solution to that problem but "Keep going" and "Keep asking".
AND:
You add a new class be clicking the right mouse button on the DIV in the list of "Styles":
You do not have the required permissions to view the files attached to this post.