Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Left align first item in page bar menu -


  #1  
Old Jul 27, 2009, 06:39 AM
joaodagraca's Avatar
joaodagraca
 
20 posts · Jul 2009
Hi

I still have a small issue with this because now the last item in the page menu is right aligned 25px
I basically need the 1st item to be left aligned 1 px, the last item to be right aligned 1 px and all items in between to have an equal spacing (in my case 25px). Is this easily achievable?

Regards
Joao
  #2  
Old Aug 6, 2009, 05:00 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
To access the first and last child cross browser use jQuery. Add this

jQuery("ul#rmenu li:first-child").css({margin-left: 1px});
jQuery("ul#rmenu li:last-child").css({margin-right: 1px});


to js.php, after i.e.

/* For the Tabbed Widgets plugin: */
jQuery("ul.tw-nav-list").
addClass("clearfix");


And style the other <LI>'s with the default value, with a CSS Insert:

ul#rmenu li {
margin-left: 25px;
}

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Left align first item in page bar menu joaodagraca Header configuration & styling 1 Jul 29, 2009 12:35 PM
[SOLVED] Left align first item in page bar menu joaodagraca Page & Category Menu Bars 2 Jul 27, 2009 04:27 AM
Where can I style space to the left and right of the page menu bar? Wimbledon Page & Category Menu Bars 6 May 28, 2009 11:43 PM
Page Menu Bar: Last Item on the Right-Hand Margin? PittFunck Page & Category Menu Bars 5 Mar 9, 2009 09:26 AM
[SOLVED] Howto: Align page menu bar with left sidebar or opacity overlay width iroQuai Page & Category Menu Bars 1 Mar 7, 2009 06:01 PM


All times are GMT -6. The time now is 11:22 AM.


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