CSS Menu Item
Permalink
Hi Team I am having a little issue trying to style the last item in my drop down menu? Actually I wish to style the last 2 items so that the menu doesn't go off screen on hover.(on small res monitors)
I have a custom theme for the auto block and I have the code below in dropdown.php
I have added this in : echo("<ul class='lastItem'>"); Line 35 so that I can style the class different ie move to left 200px. Now How I have done this applies the class to all the menu items not just the last 2?
Can any one help me out with the code I need to change?
I have a custom theme for the auto block and I have the code below in dropdown.php
I have added this in : echo("<ul class='lastItem'>"); Line 35 so that I can style the class different ie move to left 200px. Now How I have done this applies the class to all the menu items not just the last 2?
Can any one help me out with the code I need to change?
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $aBlocks = $controller->generateNav(); $c = Page::getCurrentPage(); $containsPages = false; $nh = Loader::helper('navigation'); //this will create an array of parent cIDs $inspectC=$c; $selectedPathCIDs=array( $inspectC->getCollectionID() ); $parentCIDnotZero=true; while($parentCIDnotZero){ $cParentID=$inspectC->cParentID; if(!intval($cParentID)){ $parentCIDnotZero=false; }else{
Viewing 15 lines of 69 lines. View entire code block.