Align the navigation to the right?

Post all questions about TypeNav™ here

Align the navigation to the right?

Postby charma_d » Fri Jul 23, 2010 7:40 pm

Hi there Jay,

I was wondering if it is possible to align the navigation to the right (or even centre), similarly to your navigation on Warm Forest?
I'm using TypeNav #6 and have tried everything I can think of to get it to move. I'm new to the world of web design and am trying to get my head around it all!

Thanks
charma_d
 
Posts: 1
Joined: Fri Jul 23, 2010 7:32 pm

Re: Align the navigation to the right?

Postby warmforest » Mon Jul 26, 2010 9:40 am

Hello. There are two ways you could go about doing that. The first is with CSS. If you look at the HTML code you'll notice a DIV with the id "nav" which holds your navigation. You can simply position that DIV using standard CSS code. The exact code really depends on the way your site is setup but if you aren't familiar with CSS try Googling "css position div" or something along the lines of that.

The second way is to position the navigation within the SWF itself. If you look in "typenav.xml" you'll see the setting "xPositionInSWF". Setting that number will control how far to the right the navigation will appear. You might need to adjust the width of the SWF itself in order to make it wider to accommodate the new position. You can do that by opening up one of the HTML pages and looking for this line:

swfobject.embedSWF("typenav.swf", "nav", "550", "50", "9", false, flashvars, params, attributes);

The first number "550" above is what sets how wide the SWF is. Try making that number bigger if your nav is getting cut off after you move it right.

Hope that helps.

-J
warmforest
Site Admin
 
Posts: 344
Joined: Wed Nov 05, 2008 5:12 pm
Location: Washington, DC


Return to TypeNav™

cron