Horizontal menu not horizontal and other menu problems

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
8/17/2011 7:54:11 PM
Gravatar
Total Posts 51

Re: Horizontal menu not horizontal and other menu problems

Hi, I´m having a similar problem and tried to solve it but without success.

Here´s my menu:

<div class="art-nav">
<div class="art-nav-l"></div>
<div class="art-nav-r"></div>
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">
<portal:SiteMenu ID="SiteMenu1" runat="server" UseTreeView="false" HideMenuOnSiteMap="false" Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>
</div>
</div>
</div>
</div>

And here´s what I see in view source:

<div class="art-nav">
    <div class="art-nav-l"></div>
    <div class="art-nav-r"></div>
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">

   

<div class="AspNet-Menu-Horizontal" id="ctl01_SiteMenu1_ctl00">
        <ul class="art-menu">
            <li class="active">
                <a href="/TestSite/home.aspx" class=" active">
                    <span class="l"></span><span class="r"></span><span class="t">Home</span></a>
            </li>
        </ul>

</div>


</div>
</div>
</div>

</div>

Thanks for your help.

8/18/2011 7:08:32 AM
Gravatar
Total Posts 18439

Re: Horizontal menu not horizontal and other menu problems

try removing <div class="art-nav-inner" from layout.master and specify it in theme.skin as the container class for your menu like this in theme.skin:

<portal:mojoMenu runat="server" SkinID="SiteMenu"
   RenderContainerCssClass="true"
   ContainerCssClass="art-nav-inner"
   RenderImages="false"
   UseMenuTooltipForCustomCss="true"
   RenderCustomClassOnLi="true"
   RenderCustomClassOnAnchor="false"
   RenderLiSelectedCss="false"
   RenderAnchorSelectedCss="true"
   UlCssClass="art-hmenu"
   LiCssClassWithChildren=""
   LiCssClassWithoutChildren=""
   LiSelectedCssClassWithChildren=""
   LiSelectedCssClassWithoutChildren=""
   LiChildSelectedCssClass=""
   LiParentSelectedCssClass=""
   AnchorCssClass=""
   AnchorSelectedCssClassWithChildren="active"
   AnchorSelectedCssClassWithoutChildren="active"
   AnchorChildSelectedCssClass=""
   AnchorParentSelectedCssClass=""
   InnerSpanMode="Artisteer"

  />

this is assuming that is the correct structure as seen in the index.html exported by Artisteer.

Hope that helps,

Joe

8/18/2011 1:12:37 PM
Gravatar
Total Posts 51

Re: Horizontal menu not horizontal and other menu problems

Hi Joe and thanks for the reply.

I build the skin again based on artisteer-24verticalmenu1 from mojoportal-2-3-6-6 and it works whithout having to change anything, but now the menu is not centered as in index.html. It´s rather on the far left.

I tried .art-nav-inner {float: right !important; } or .art-nav-outer {float: right !important; } without success.

Here´s the markup:

<div class="art-nav">
                    <div class="art-nav-l"></div>
      <div class="art-nav-r"></div>
                       

<div class="art-nav-outer" id="ctl01_SiteMenu1_ctl00" style="float: left; ">
  <ul class="art-hmenu static" tabindex="0" style="position: relative; width: auto; float: left; " role="menubar">
   <li role="menuitem" class="static" style="position: relative; float: left; ">
    <a href="/TestSite/home.aspx" class="active static" tabindex="-1">
     <span class="l"></span><span class="r"></span><span class="t">Home</span></a>
   </li>
  </ul>

</div>

Thanks

8/18/2011 3:38:32 PM
Gravatar
Total Posts 51

Re: Horizontal menu not horizontal and other menu problems

It works!

<div class="art-nav">
<div class="art-nav-l"></div>
<div class="art-nav-r"></div>
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">
<portal:SiteMenu ID="SiteMenu1" runat="server" UseTreeView="false" HideMenuOnSiteMap="false" Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>
</div>
</div>
</div>
</div>

Thanks a lot Joe -;)

 

You must sign in to post in the forums. This thread is closed to new posts.