COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Ann on 19 Oct 2010 02:05:41 AM

Title: Horizontal menu in Cognos 8.4
Post by: Ann on 19 Oct 2010 02:05:41 AM
Hi,

Can anyone tel me how to create a horizontal menu in Cognos 8.4?

I have create a menu which is vertical using below.

<ul>
<li ><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
</ul>

which gives an output:
Home
Products
Services


But What i required is:Home Products Services

Can anyone help me in this?
Title: Re: Horizontal menu in Cognos 8.4
Post by: CognosPaul on 19 Oct 2010 03:16:11 AM
Paste the following into an HTML item.

<style>
ul li
{
margin-right: 10px;
float: left;
}

</style>


Make sure that you're using a standard repeater and not a list or a repeater table for this.

So your report should look something like:
HTML Item(text): Style
HTLM Item(text): <ul>
Repeater:
   HTML Item(text): <li>
   HTML Item(value)
   HTML Item(text):</li>
HTML Item(text): </ul>