Left align first item in page bar menu -
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 |
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; } |
All times are GMT -6. The time now is 02:33 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.