osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

horizontal CSS menu

This is a discussion on horizontal CSS menu within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi, I was needing some pointers or help on which file i should be looking at so i can have ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-15-2007, 09:29 AM
New Member
 
Join Date: Feb 2007
Posts: 20
Thanks: 9
Thanked 3 Times in 3 Posts
Rep Power: 0
theengineer is on a distinguished road
Default horizontal CSS menu

Hi,

I was needing some pointers or help on which file i should be looking at so i can have a horizontal CSS menu like this Dynamic Drive CSS Library- Chrome Menu Bar


on my website, I would really appreciate any help you can offer.
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-21-2007, 10:41 AM
New Member
 
Join Date: Feb 2007
Posts: 20
Thanks: 9
Thanked 3 Times in 3 Posts
Rep Power: 0
theengineer is on a distinguished road
Default Re: horizontal CSS menu

Ok Seems i got one working (works for me) what i did is the following (hopefuly will help anyone else looking for something
similar)

Firstly I opened up main_page.tpl.php from the template dir and added the following after these lines :
PHP Code:
</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>&nbsp;&nbsp;</td>
  </tr>
</table> 
PHP Code:
<table border="0" width=620 cellspacing="0" cellpadding="1" align=center>
<td valign="middle">
<tr class="header">
<div id="chromemenu">
  <ul>
    <li><a href="login.php" title="Link 1"><span><?php echo HEADER_TITLE_MY_ACCOUNT ?></span></a></li>
    <li><a href="shopping_cart.php" title="Link 2"><span><?php echo HEADER_TITLE_CART_CONTENTS ?></span></a></li>
    <li><a href="login.php" title="Link 3"><span><?php echo HEADER_TITLE_CHECKOUT ?></span></a></li>
      </ul>
</div>  
</td>
</tr>
</table>
From here i Opened up stylesheet.css from the same template dir and put in the following at the bottom :


Code:
/*- Menu Tabs --------------------------- */

<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

#chromemenu{
width: 99%;
font-weight: bold;
font-size: 90%;
}

#chromemenu:after{ /*Add margin between menu and rest of content in Firefox*/
content: "."; 
display: block; 
height: 0; 
clear: both; 
visibility: hidden;
}

#chromemenu ul{
border: 1px solid #BBB;
width: 100%;
background: url(images/chromebg.gif) center center repeat-x;
padding: 5px 0;
margin: 0;
text-align: left; /*set value to "right" for example to align menu to the left of page*/
}

#chromemenu ul li{
display: inline;
}

#chromemenu ul li a{
color: #494949;
padding: 5px;
margin: 0;
text-decoration: none;
border-right: 1px solid #DADADA;
}

#chromemenu ul li a:hover{
background: url(images/chromebg2.gif) center center repeat-x;
}

</style>
I then ftped the images from Dynamic Drive CSS Library- Horizontal CSS Menus for that particular menu and everything seems to work so far.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to theengineer For This Useful Post:
michael_s (07-21-2007)
Reply



Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
CSS Menu michael_s New osCommerce Contributions 2 05-06-2007 08:41 PM
cool menu vs dhtml menu Lara Croft osCMax v2 Features Discussion 3 01-17-2007 12:38 PM
Create multple mainpages avail from horizontal dropdown menu fuzzyphil osCMax v2 Customization/Mods 1 12-23-2005 09:38 PM
Adding cool menu and keeping the catorory menu??? Kyle_Bassett osCMax v2 Customization/Mods 0 10-18-2005 09:17 AM
making the catalog menu same style as admin menu starchild osCommerce 2.2 Modification Help 0 06-01-2003 04:42 AM


All times are GMT -8. The time now is 03:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax