Results 1 to 6 of 6

Thread: css menu

  1. #1
    Join Date
    Apr 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default css menu

    http://www.dynamicdrive.com/style/cs...rizontal_menu/

    Hi, I am trying to install the above menu but it does'nt work, this is the first css menu I have worked with and so it very much trial and error.

    what I did was:

    1) copy css and pasted it into my own style sheet and added images to my image folder and updated the image urls.

    2) copied the HTML and added it to the head


    what is happening is the links appear in a vertical line.

    http://www.pinkspiderdirect.com/slow/index.php

    any idea's, do I need to add any more files ? or do something else.

    Patrick

  2. #2
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Remove the

    Code:
    <style type="text/css">
    
    </style>
    From your .css file where you have the glossymenu styles. When including into a .css file these tags are not required.

    This
    Code:
    <style type="text/css">
      
    /*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */
    /*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */
    
    .glossymenu{
    	position: relative;
    	padding: 0 0 0 34px;
    	margin: 0 auto 0 auto;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif) repeat-x; /*tab background image path*/
    	height: 46px;
    	list-style: none;
    }
    
    .glossymenu li{
    	float:left;
    }
    
    .glossymenu li a{
    	float: left;
    	display: block;
    	color:#000;
    	text-decoration: none;
    	font-family: sans-serif;
    	font-size: 13px;
    	font-weight: bold;
    	padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/
    	height: 46px;
    	line-height: 46px;
    	text-align: center;
    	cursor: pointer;	
    }
    
    .glossymenu li a b{
    	float: left;
    	display: block;
    	padding: 0 24px 0 8px; /*Padding of menu items*/
    }
    
    .glossymenu li.current a, .glossymenu li a:hover{
    	color: #fff;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_hover_left.gif) no-repeat; /*left tab image path*/
    	background-position: left;
    }
    
    .glossymenu li.current a b, .glossymenu li a:hover b{
    	color: #fff;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_hover_right.gif) no-repeat right top; /*right tab image path*/
    }
    
    
    </style>
    to this

    Code:
    /*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */
    /*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */
    
    .glossymenu{
    	position: relative;
    	padding: 0 0 0 34px;
    	margin: 0 auto 0 auto;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif) repeat-x; /*tab background image path*/
    	height: 46px;
    	list-style: none;
    }
    
    .glossymenu li{
    	float:left;
    }
    
    .glossymenu li a{
    	float: left;
    	display: block;
    	color:#000;
    	text-decoration: none;
    	font-family: sans-serif;
    	font-size: 13px;
    	font-weight: bold;
    	padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/
    	height: 46px;
    	line-height: 46px;
    	text-align: center;
    	cursor: pointer;	
    }
    
    .glossymenu li a b{
    	float: left;
    	display: block;
    	padding: 0 24px 0 8px; /*Padding of menu items*/
    }
    
    .glossymenu li.current a, .glossymenu li a:hover{
    	color: #fff;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_hover_left.gif) no-repeat; /*left tab image path*/
    	background-position: left;
    }
    
    .glossymenu li.current a b, .glossymenu li a:hover b{
    	color: #fff;
    	background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_hover_right.gif) no-repeat right top; /*right tab image path*/
    }
    Ryan
    Sevierville, TN

  3. The Following User Says Thank You to NXArmada For This Useful Post:

    meakip (04-12-2008)

  4. #3
    Join Date
    Apr 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that, I have done that but still have a couple of problems, the menu apears when I look at it in firefox but it does not have any images, I have checked my image paths and they seem ok.

    and my other problem is that the menu is unchanged in IE,it still is in a vertical line, the original on Dynamic drive works fine so I guessing that its a problem with the installation not the browser.

    Patrick

  5. #4
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    You left out an apostrophe in the css statement.


    Your Code Reads ::
    Code:
    background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif) repeat-x; /*tab background image path*/
    It SHOULD Read ::
    Code:
    background: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif') repeat-x; /*tab background image path*/
    If you still experience problems, don't use the shortcuts statement.
    Try replacing your background statement ( as shown above ) with ::
    Code:
    background-image: url('http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif');
    background-repeat: no-repeat;
    background-position: ; /* If you need to adjust the position of the image */

  6. The Following User Says Thank You to terrik For This Useful Post:

    meakip (04-12-2008)

  7. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by terrik View Post
    You left out an apostrophe in the css statement.
    Actually, there should be no apostrophes at all. For valid CSS, just add the path within the parenthesis, no single or double quotes.

    So, it SHOULD REALLY read:

    Code:
    background: url(http://www.pinkspiderdirect.com/sexshop/templates/Pixame_v1/images/menur_bg.gif) repeat-x; /*tab background image path*/

  8. The Following User Says Thank You to Medyman For This Useful Post:

    meakip (04-12-2008)

  9. #6
    Join Date
    Apr 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thankyou very much to all of you, im on my way now !

    Top Bannana.

    Patrick

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •