Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Flyout CSS style sheet

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-21-2008, 01:44 PM
 
rick2003 rick2003 is offline
 

Member
  
Join Date: Jan 2008
Posts: 20
 

Default Flyout CSS style sheet

My store have implemented flyout 4 level menu.

However i want to have something that is similiar to amazon's menu with border.

my website www.lywoo.com



Quote:
{capture name=menu}
<ul id="navmenu">
{assign var=counter value=0}
{foreach from=$categories item=level_one_cat name="Root"}
{assign var=counter value=$counter+1}
{if $level_one_cat.parentid eq 0 and $level_one_cat.avail eq "Y"}
<li><a href="/home.php?cat={$level_one_cat.categoryid}" alt="{$level_one_cat.category}">{$level_one_cat.ca tegory}{if $level_one_cat.subcategory_count gt 0}{/if}</a>
{if $level_one_cat.subcategory_count gt 0}
<ul>
{foreach from=$allcategories item=level_two_cat name="Level_Two"}
{assign var=counter value=$counter+1}
{if $level_two_cat.parentid eq $level_one_cat.categoryid}
<li><a href="/home.php?cat={$level_two_cat.categoryid}" alt="{$level_two_cat.category}">{$level_two_cat.ca tegory}{if $level_two_cat.subcategory_count gt 0}{/if}</a>
{if $level_two_cat.subcategory_count gt 0}
<ul>
{foreach from=$allcategories item=level_three_cat name="Level_Three"}
{assign var=counter value=$counter+1}
{if $level_three_cat.parentid eq $level_two_cat.categoryid}
<li><a href="/home.php?cat={$level_three_cat.categoryid}" alt="{$level_three_cat.category}">{$level_three_ca t.category}{if $level_three_cat.subcategory_count gt 0}{/if}</a>
{if $level_three_cat.subcategory_count gt 0}
<ul>
{foreach from=$allcategories item=level_four_cat name="Level_Four"}
{assign var=counter value=$counter+1}
{if $level_four_cat.parentid eq $level_three_cat.categoryid}
<li><a href="/home.php?cat={$level_four_cat.categoryid}" alt="{$level_four_cat.category}">{$level_four_cat. category}</a></li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}


here is my menu.css
Quote:
/* Root = Vertical, Secondary = Vertical */
ul#navmenu,
ul#navmenu li,
ul#navmenu ul {
margin: 0;
border: 0 none;
padding: 0;
width: 148px; /*For KHTML*/
list-style: none;
}

ul#navmenu:after /*From IE 7 lack of compliance*/{
clear: both;
display: block;
font: 1px/0px serif;
content: ".";
height: 0;
visibility: hidden;
}

ul#navmenu li {
float: left; /*For IE 7 lack of compliance*/
display: block !important; /*For GOOD browsers*/
display: inline; /*For IE*/
position: relative;
}

/* Root Menu */
ul#navmenu a {
border: 2px solid #FFF;
padding: 0 6px;
display: block;
color: #330000;
font-size: 9pt;
font-weight: bold;
height: auto !important;
height: 2%; /*For IE*/

}

ul#navmenu a {
border: 2px solid #FFF;
padding: 0 6px;
display: block;
color: #330000;
font-size: 9pt;
font-weight: bold;
height: auto !important;
height: 2%; /*For IE*/

}

/* Root Menu Hover Persistence */
ul#navmenu a:hover,
ul#navmenu li:hover a,
ul#navmenu li.iehover a {
background: #F8F8F8;
}

/* 2nd Menu */
ul#navmenu li:hover li a,
ul#navmenu li.iehover li a {

}

/* 2nd Menu Hover Persistence */
ul#navmenu li:hover li a:hover,
ul#navmenu li:hover li:hover a,
ul#navmenu li.iehover li a:hover,
ul#navmenu li.iehover li.iehover a {

}

/* 3rd Menu */
ul#navmenu li:hover li:hover li a,
ul#navmenu li.iehover li.iehover li a {
background: #D2C6B2;
color: #330000;
}

/* 3rd Menu Hover Persistence */
ul#navmenu li:hover li:hover li a:hover,
ul#navmenu li:hover li:hover li:hover a,
ul#navmenu li.iehover li.iehover li a:hover,
ul#navmenu li.iehover li.iehover li.iehover a {
background: #AD9D8A;
color: #FFF;
}

/* 4th Menu */
ul#navmenu li:hover li:hover li:hover li a,
ul#navmenu li.iehover li.iehover li.iehover li a {
background: #D2C6B2;
color: #330000;
}

/* 4th Menu Hover */
ul#navmenu li:hover li:hover li:hover li a:hover,
ul#navmenu li.iehover li.iehover li.iehover li a:hover {
background: #AD9D8A;
color: #FFF;
}

ul#navmenu ul,
ul#navmenu ul ul,
ul#navmenu ul ul ul {
display: none;
position: absolute;
top: 0;
left: 148px;
}

/* Do Not Move - Must Come Before display:block for Gecko */
ul#navmenu li:hover ul ul,
ul#navmenu li:hover ul ul ul,
ul#navmenu li.iehover ul ul,
ul#navmenu li.iehover ul ul ul {
display: none;
}

ul#navmenu li:hover ul,
ul#navmenu ul li:hover ul,
ul#navmenu ul ul li:hover ul,
ul#navmenu li.iehover ul,
ul#navmenu ul li.iehover ul,
ul#navmenu ul ul li.iehover ul {
display: block;
}
__________________
Version 4.1.9
Highly Modified X-cart

www.lywoo.com
Reply With Quote
  #2  
Old 08-21-2008, 11:51 PM
  Piotr M.'s Avatar 
Piotr M. Piotr M. is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 134
 

Default Re: Flyout CSS style sheet

Add the following lines to your menu CSS file
Code:
ul#navmenu ul { border: 1px solid #c7c7c7 !important; }
__________________
Regards,
Piotr Markushin

X-Cart PDF Catalog Generator NEW
Professional X-Cart Skins Store (7 new skins added in August 2008!)

ahedOffice.com - Web 2.0 Online Groupware
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:53 PM.

   

 
X-Cart forums © 2001-2020