Hello fellow MadCap users,
I'm struggling with the formatting of my top nav topics. I've attached an example screen shot to help to explain the issues that I am having. In some places, numbered steps or bullet points are not lining up with the text. In other places, where I have set a graphic to appear below the text, it is instead appearing next to the text. Also, when a bullet point does appear next to the corresponding text, it is sometimes slightly too high and not exactly in line.
I'm not sure why this is happening as it displays correctly in the PDF output and in the Flare editor.
Hopefully you can offer me some advice!
Thanks very much,
Emma
Top Nav formatting
-
SoleWriter
- Propeller Head
- Posts: 42
- Joined: Thu Nov 27, 2014 7:44 am
- Location: United Kingdom
Top Nav formatting
You do not have the required permissions to view the files attached to this post.
Re: Top Nav formatting
Was it working previously, and if so what did you change?
-
kwag_myers
- Propellus Maximus
- Posts: 810
- Joined: Wed Jul 25, 2012 11:36 am
- Location: Ann Arbor, MI
Re: Top Nav formatting
I would need to see the Text View and the CSS for ul, ol, and li.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
-
SoleWriter
- Propeller Head
- Posts: 42
- Joined: Thu Nov 27, 2014 7:44 am
- Location: United Kingdom
Re: Top Nav formatting
Thanks a lot for the quick replies.
Dave, I'm not sure what I have potentially changed, I have changed a few things in the stylesheet and can't really pinpoint it to anything. I applied an older stylesheet and republished and still got the same issue.
I've attached the CSS file, and below is the text view for the example topic:
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="6" MadCap:lastHeight="702" MadCap:lastWidth="958" class="topic" MadCap:conditions="Default.Updated">
<head>
<link href="../Resources/Stylesheets/Lavastorm - HTMLTopNav.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 class="ChapterHeading" MadCap:autonum="1. ">Viewing graphs in Lavastorm Explorer</h1>
<ul class="PrerequisiteBullet">
<li>
<p>You have received a <MadCap:keyword term="web link" />web link to view a graph in Lavastorm Explorer.</p>
</li>
</ul>
<ol>
<li>Navigate to the web link.</li>
<li>
<p>Enter your user name and password to sign in to your Lavastorm Analytics Engine (LAE) account.</p>
<ul class="ResultBullet">
<li>Your graph opens in Lavastorm Explorer.</li>
</ul>
<p class="Or"> </p>
</li>
</ol>
<ul class="PrerequisiteBullet">
<li>
<p> You have selected a graph in the LAE Directory, see <MadCap:xref href="../H_LAE Directory/My Documents.htm" class="Link_NoPageNumber">Selecting a graph to view.</MadCap:xref></p>
</li>
</ul>
<ul class="OneStep">
<li>
<p>From the details pane, click <b>Open</b> to view the selected graph in Lavastorm Explorer.</p>
<p>
<img src="../Resources/Images/LAE-ActionsBar1-EH26052015.png" title="Open graph in Lavastorm Explorer." />
</p>
</li>
</ul>
<p>By default, the graph and run parameters are displayed when a graph is loaded. If you click a node, the node parameters are displayed in place of the graph and run parameters, see <MadCap:xref href="Viewing Node Parameters.htm" class="Link_NoPageNumber">Viewing node parameters</MadCap:xref>. You can edit the run parameters by clicking the <b>Run Graph</b> button, see <MadCap:xref href="Re-Running a Graph.htm" class="Link_NoPageNumber">Re-running a graph and editing run parameters</MadCap:xref>.</p>
<p class="Note" MadCap:autonum="<b> <span style="color: #007e9c;" class="mcFormatColor">Note: </span> </b> ">Only graphs that have been uploaded to the web application are available to select from the LAE Directory. If you are given a graph link generated through Logistics Manager, the graph opens directly in Lavastorm Explorer and is not listed in the LAE Directory.</p>
<p class="Note" style="mc-hyphenate: never;" MadCap:autonum="<b> <span style="color: #007e9c;" class="mcFormatColor">Note: </span> </b> ">It is not possible to create or edit graphs in Lavastorm Explorer. For more information on creating and editing graphs, see the Lavastorm Analytics Engine BRE help content.</p>
<p>You can perform the following tasks in Lavastorm Explorer, see:</p>
<ul>
<li>
<MadCap:xref href="Navigating the Graph Canvas.htm" class="Link_NoPageNumber">Navigating the graph canvas</MadCap:xref>
</li>
<li>
<MadCap:xref href="Panning.htm" class="Link_NoPageNumber">Panning</MadCap:xref>
</li>
<li>
<MadCap:xref href="Viewing Node Information in the Data Viewer.htm" class="Link_NoPageNumber">Viewing node output data in the Data Viewer</MadCap:xref>
</li>
<li>
<MadCap:xref href="Viewing Node Parameters.htm" class="Link_NoPageNumber">Viewing node parameters</MadCap:xref>
</li>
<li>
<MadCap:xref href="Tracing.htm" class="Link_NoPageNumber">Tracing</MadCap:xref>
</li>
<li>
<MadCap:xref href="Re-Running a Graph.htm" class="Link_NoPageNumber">Re-running a graph and editing run parameters</MadCap:xref>
</li>
</ul>
<p>The following screen shot gives an overview of the Lavastorm Explorer user interface. The graph shows the passage of data from left to right.</p>
<p>
<img src="../Resources/Images/LAE-GraphCanvasScreen2-EH13042015.png" alt="" title="Lavastorm Explorer user interface. Click to expand." style="mc-thumbnail: popup;" MadCap:conditions="Default.OnlineOnly" />
</p>
</body>
</html>
Thanks a lot!
Dave, I'm not sure what I have potentially changed, I have changed a few things in the stylesheet and can't really pinpoint it to anything. I applied an older stylesheet and republished and still got the same issue.
I've attached the CSS file, and below is the text view for the example topic:
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="6" MadCap:lastHeight="702" MadCap:lastWidth="958" class="topic" MadCap:conditions="Default.Updated">
<head>
<link href="../Resources/Stylesheets/Lavastorm - HTMLTopNav.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 class="ChapterHeading" MadCap:autonum="1. ">Viewing graphs in Lavastorm Explorer</h1>
<ul class="PrerequisiteBullet">
<li>
<p>You have received a <MadCap:keyword term="web link" />web link to view a graph in Lavastorm Explorer.</p>
</li>
</ul>
<ol>
<li>Navigate to the web link.</li>
<li>
<p>Enter your user name and password to sign in to your Lavastorm Analytics Engine (LAE) account.</p>
<ul class="ResultBullet">
<li>Your graph opens in Lavastorm Explorer.</li>
</ul>
<p class="Or"> </p>
</li>
</ol>
<ul class="PrerequisiteBullet">
<li>
<p> You have selected a graph in the LAE Directory, see <MadCap:xref href="../H_LAE Directory/My Documents.htm" class="Link_NoPageNumber">Selecting a graph to view.</MadCap:xref></p>
</li>
</ul>
<ul class="OneStep">
<li>
<p>From the details pane, click <b>Open</b> to view the selected graph in Lavastorm Explorer.</p>
<p>
<img src="../Resources/Images/LAE-ActionsBar1-EH26052015.png" title="Open graph in Lavastorm Explorer." />
</p>
</li>
</ul>
<p>By default, the graph and run parameters are displayed when a graph is loaded. If you click a node, the node parameters are displayed in place of the graph and run parameters, see <MadCap:xref href="Viewing Node Parameters.htm" class="Link_NoPageNumber">Viewing node parameters</MadCap:xref>. You can edit the run parameters by clicking the <b>Run Graph</b> button, see <MadCap:xref href="Re-Running a Graph.htm" class="Link_NoPageNumber">Re-running a graph and editing run parameters</MadCap:xref>.</p>
<p class="Note" MadCap:autonum="<b> <span style="color: #007e9c;" class="mcFormatColor">Note: </span> </b> ">Only graphs that have been uploaded to the web application are available to select from the LAE Directory. If you are given a graph link generated through Logistics Manager, the graph opens directly in Lavastorm Explorer and is not listed in the LAE Directory.</p>
<p class="Note" style="mc-hyphenate: never;" MadCap:autonum="<b> <span style="color: #007e9c;" class="mcFormatColor">Note: </span> </b> ">It is not possible to create or edit graphs in Lavastorm Explorer. For more information on creating and editing graphs, see the Lavastorm Analytics Engine BRE help content.</p>
<p>You can perform the following tasks in Lavastorm Explorer, see:</p>
<ul>
<li>
<MadCap:xref href="Navigating the Graph Canvas.htm" class="Link_NoPageNumber">Navigating the graph canvas</MadCap:xref>
</li>
<li>
<MadCap:xref href="Panning.htm" class="Link_NoPageNumber">Panning</MadCap:xref>
</li>
<li>
<MadCap:xref href="Viewing Node Information in the Data Viewer.htm" class="Link_NoPageNumber">Viewing node output data in the Data Viewer</MadCap:xref>
</li>
<li>
<MadCap:xref href="Viewing Node Parameters.htm" class="Link_NoPageNumber">Viewing node parameters</MadCap:xref>
</li>
<li>
<MadCap:xref href="Tracing.htm" class="Link_NoPageNumber">Tracing</MadCap:xref>
</li>
<li>
<MadCap:xref href="Re-Running a Graph.htm" class="Link_NoPageNumber">Re-running a graph and editing run parameters</MadCap:xref>
</li>
</ul>
<p>The following screen shot gives an overview of the Lavastorm Explorer user interface. The graph shows the passage of data from left to right.</p>
<p>
<img src="../Resources/Images/LAE-GraphCanvasScreen2-EH13042015.png" alt="" title="Lavastorm Explorer user interface. Click to expand." style="mc-thumbnail: popup;" MadCap:conditions="Default.OnlineOnly" />
</p>
</body>
</html>
Thanks a lot!
You do not have the required permissions to view the files attached to this post.
Re: Top Nav formatting
Is that the correct file?
The topic stylesheet link is to Lavastorm - HTMLTopNav.css, but the attached file is Default_Lavastorm.css.
The topic stylesheet link is to Lavastorm - HTMLTopNav.css, but the attached file is Default_Lavastorm.css.
-
SoleWriter
- Propeller Head
- Posts: 42
- Joined: Thu Nov 27, 2014 7:44 am
- Location: United Kingdom
Re: Top Nav formatting
Good spot, but Default_Lavastorm.css is the correct stylesheet. Lavastorm - HTMLTopNav.css is an older css file that I had just applied to the topic for testing a few minutes ago to see if the output had the same issue (which it did).
-
kwag_myers
- Propellus Maximus
- Posts: 810
- Joined: Wed Jul 25, 2012 11:36 am
- Location: Ann Arbor, MI
Re: Top Nav formatting
The first thing I see is that some of the <li>'s have nested <p> tags. I'd remove them to see if that helps, because the list items that don't have nested paragraphs appear to be fine. The easiest way to remove them is to right-click the block on the left side of the XML Editor and select Unbind.
You do not have the required permissions to view the files attached to this post.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
-
doc_guy
- Propellus Maximus
- Posts: 1979
- Joined: Tue Nov 28, 2006 11:18 am
- Location: Crossroads of the West
- Contact:
Re: Top Nav formatting
The nested Paragraph tabs caught my attention as well. If you need the paragraphs in there (say, if you need to have images inside the list item), then I would do one (or both) of two things: (1) ensure you are consistent and always use nested paragraphs inside LI elements; (2) modify your style sheet to remove extra paragraph spacing around paragraph items that are children of li elements.
The CSS to do this would be:
Or something similar. You need to have space between your sibling paragraphs within the LI, so you can't just set both the margin and padding to 0, but you want to remove any other formatting that is coming from the P element.
What you need to remember here is that padding and margin is additive in CSS, so the padding of the paragraph inside the li gets added to the padding applied to the LI.
Using the complex selector, in the code above, allows you to target paragraphs inside LIs so that you don't have extra spaces there.
The CSS to do this would be:
Code: Select all
li p {
padding:0;
margin:0 0 .5em 0;
}Or something similar. You need to have space between your sibling paragraphs within the LI, so you can't just set both the margin and padding to 0, but you want to remove any other formatting that is coming from the P element.
What you need to remember here is that padding and margin is additive in CSS, so the padding of the paragraph inside the li gets added to the padding applied to the LI.
Using the complex selector, in the code above, allows you to target paragraphs inside LIs so that you don't have extra spaces there.
-
SoleWriter
- Propeller Head
- Posts: 42
- Joined: Thu Nov 27, 2014 7:44 am
- Location: United Kingdom
Re: Top Nav formatting
Thanks both kwag_myers and Paul, very helpful
As well as the pointers that you gave me, I noticed that my output was somehow referencing an old stylesheet, despite me pointing the topics to a new stylesheet. To fix this, I removed the old stylesheet from the project folder all together, and this also helped to tighten up some of the formatting issues.
As well as the pointers that you gave me, I noticed that my output was somehow referencing an old stylesheet, despite me pointing the topics to a new stylesheet. To fix this, I removed the old stylesheet from the project folder all together, and this also helped to tighten up some of the formatting issues.
