sub nav size problem

Put your questions here on how to do things in ProtoShare.
artonic
Posts: 10
Joined: Tue Dec 27, 2011 9:21 pm

sub nav size problem

Postby artonic » Sun Apr 28, 2013 8:50 am

How do I make the drop down menus in a horizontal navigation show wider than the parent button? This is a problem when I have a lot of short labels for the main nav and long labels for sub-pages.

Thanks,
Matt

Nick Jennings
Posts: 165
Joined: Mon May 14, 2012 12:06 pm

Re: sub nav size problem

Postby Nick Jennings » Mon Apr 29, 2013 11:35 am

Hi,

You can use CSS to change the appearance of the drop-down menus. Here is code that will change the width:

Code: Select all

#mybar .s9-content-grp .s9-content-grp .s9-content-itm {width: 300px !important;}
Just change the width value to fit your needs.

One thing to note is that this also effects any sub-menus from the main drop-down as well.
Nick Jennings
customerservice@protoshare.com
Site9, Inc. / Customer Support
blog.protoshare.com | twitter.com/protoshare

artonic
Posts: 10
Joined: Tue Dec 27, 2011 9:21 pm

Re: sub nav size problem

Postby artonic » Mon Apr 29, 2013 6:13 pm

Thank you!

How do I get the text to left align, only for the sub navigation?

Nick Jennings
Posts: 165
Joined: Mon May 14, 2012 12:06 pm

Re: sub nav size problem

Postby Nick Jennings » Tue Apr 30, 2013 10:43 am

Hi,

You'll need some additional CSS to change the alignment. Just add this into your stylesheet on a new line:

Code: Select all

#mybar .s9-content-grp .s9-content-grp .s9-content-itm span {text-align:left !important;}
This targets the text within the drop-down menus and should align only the menus. If you run into any issues, please let us know.
Nick Jennings
customerservice@protoshare.com
Site9, Inc. / Customer Support
blog.protoshare.com | twitter.com/protoshare

artonic
Posts: 10
Joined: Tue Dec 27, 2011 9:21 pm

Re: sub nav size problem

Postby artonic » Tue Apr 30, 2013 4:29 pm

Works great. Thank you!


Return to “How Do I...”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron