No account yet?
Home arrow Portfolio
Advertisement
Pure CSS Virtuemart category module

By Itamar Elharar - איתמר אלהרר, on Sunday, 25 March 2007

Views : 6951    

Published in : my publications, open source projects


Virtuemart<strong> category</strong><strong> module</strong>

 

While working on www.pirsumferera.co.il - a product catalog website we have created this simple and easy to use Joomla module who displays the category and sub-categories under a ul list structure. The CSS menu like stracture is based over the Pure CSS Menus by Mark "Tarquin" Wilton-Jones you can read there about how to give your Category list a cool new looks.     So as you can understand from the name this module is fully style able and uses pure CSS code for actions and scripting.

We also added some SEO improvments inside the links code so totaly you get an easy to use, cool and support of sub-categories display (without any other installations) and of course GPL licensed  module. :)

This Module works in Mozilla 1+, Netscape 7+, Opera 7+, Safari build 60+, OmniWeb 4.5+, Konqueror 3.2+, iCab 3+ and IE 5.5+ on Windows (using DHTML behaviours).

Joomla vesrions:  1.0.1x and higher.

Virtuemart versions: 1.0.7 and higher.

Feel free to use our Support forums and Download the module package files Here.

 

 

How to use this module:

  1.  Install the module like any other Joomla module.
  2.  Add the  following CSS code to  your temaplate  template_css.css file:
     

NOTE: it is vital that the ULs are given a background colour, or Internet Explorer does not recognise mouseovers / mouseouts correctly. It is also vital that you use a DOCTYPE that triggers IE's "standards" rendering mode, or the menu will not function in IE 7.

<style type="text/css">
ul.makeMenu, ul.makeMenu ul {
width: 80px; /* sets the size of the menu blocks */
border: 1px solid #000; /* puts a black border around the menu blocks */
background-color: #8aa; /* makes the menu blocks mint green - a bg-color MUST be included for IE to work properly! */
padding-left: 0px; /* stops the usual indent from ul */
cursor: default; /* gives an arrow cursor */
margin-left: 0px; /* Opera 7 final's margin and margin-box model cause problems */
}
ul.makeMenu li {
list-style-type: none; /* removes the bullet points */
margin: 0px; /* Opera 7 puts large spacings between li elements */
position: relative; /* makes the menu blocks be positioned relative to their parent menu item
the lack of offset makes these appear normal, but it will make a difference
to the absolutely positioned child blocks */
color: #fff; /* sets the default font colour to white */
}
ul.makeMenu li > ul { /* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
display: none; /* hides child menu blocks - one of the most important declarations */
position: absolute; /* make child blocks hover without leaving space for them */
top: 2px; /* position slightly lower than the parent menu item */
left: 80px; /* this must not be more than the width of the parent block, or the mouse will
have to move off the element to move between blocks, and the menu will close */
}
ul.makeMenu li:hover, ul.makeMenu li.CSStoHighlight {
background-color: #ffa; /* gives the active menu items a yellow background */
color: #000; /* makes the active menu item text black */
}
ul.makeMenu ul.CSStoShow { /* must not be combined with the next rule or IE gets confused */
display: block; /* specially to go with the className changes in the behaviour file */
}
ul.makeMenu li:hover > ul { /* one of the most important declarations - the browser must detect hovering over arbitrary elements
the > targets only the child ul, not any child uls of that child ul */
display: block; /* makes the child block visible - one of the most important declarations */
}




Last update : Friday, 06 April 2007

   
Quote this article in website
Favoured
Print
Send to friend
Related articles
Save this to del.icio.us

Keywords : CSS, virtuemart, sub category, category, categories, style, vertuemart, module, scripting, stracture,


Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 


Add your comment
Only registered users can comment an article. Please login or register.

No comment posted



mXcomment 1.0.2 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
Article Index
Pure CSS Virtuemart category module
Page 2
 
< Prev   Next >

El-Tech Elharar Techonology, Israel