Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Page Menu Bar: Last Item on the Right-Hand Margin? (http://forum.bytesforall.com/showthread.php?t=672)

PittFunck Mar 6, 2009 01:03 PM

Page Menu Bar: Last Item on the Right-Hand Margin?
 
Hello!

Is there a simple way to place the last item of the page menu bar on the right-hand margin, leaving a gap between the next-to-last and the last menu item?

Thanks a lot in advance
Pitt

Flynn Mar 6, 2009 02:59 PM

Look into the source code to see if the last or next-to-last LI has a unique class such as page-item-109, then add a CSS Insert:

HTML Code:

ul#rmenu2 li.page-item-109 {
margin-left: XXpx;
}

or margin-right if you use the next-to-last LI item

PittFunck Mar 6, 2009 03:37 PM

Hi Flynn, thanks for the quick reply!

Sorry, I'm a complete newbie... what do you mean by "unique class"? Do you mean the order number? Or the page_id? And am I suppose to replace "XX" by some number of pixels? I tried all of them, with no success...

Cheers
Pitt

Flynn Mar 6, 2009 05:39 PM

Surf to your site, choose "View Source" or similar in your browser to view the source code, and see if there's something like

<li class="page_item page-item-106">

Then take the part with the number page-item-106 and add a CSS style for it, through A. Theme Options -> HTML/CSS Inserts/CSS Inserts:

HTML Code:

ul#rmenu2 li.page-item-109 {
margin-left: XXpx;
}

And replace XX with the amount of pixels you want to move the menu tab

PittFunck Mar 9, 2009 05:50 AM

The additional space in the page menu only shows up when the page menu tab in question is *selected*, but not in the other pages... I want the additional space to be always there.

By the way, in my website the page-item always corresponds to the page_id in the URL.

Cheers
Pitt

Flynn Mar 9, 2009 08:26 AM

Try

HTML Code:

ul#rmenu2 li.page-item-109 {
margin-left: XXpx !important;
}



All times are GMT -6. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.