Results 1 to 4 of 4

Thread: Glossy Menu Issue

  1. #1
    Join Date
    Jan 2007
    Posts
    82
    Thanks
    30
    Thanked 18 Times in 17 Posts

    Default Glossy Menu Issue

    Script:
    http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/P40/


    I am trying to impliment the above menu on one of my sites (www.n2flash.com). I have added the css to my main styles page, and made the appropriate references to the menu. For some reason it isn't working properly.

    I think my css is overriding it somehow because the spacing between the links do not look sufficient, but I can't find anything wrong! Can anyone help me?

    Here is the source to my css:
    Code:
    body {
    	margin: 0px;
    	padding: 0px;
    	background: #555555;
            background-image: url(images/bg-new2.jpg);
            background-position: center;
    	color: #333333;
    	font-size: 11px;
    	font-family: Arial;
    	text-align: left;
    }
    form {
    	margin: 0px;
    	padding: 0px;
    }
    input, textarea {
    	margin: 2px;
    	padding: 2px;
    	background: #F7F7F7;
    	border: 1px solid #99CC66;
    	font-size: 11px;
    }
    fieldset {
    	margin-top: 7px;
    	-moz-border-radius: 8px;
    }
    legend {
    	font-weight: bold;
    }
    a:link {
    	color: #003366;
    	text-decoration: underline;
    }
    a:visited {
    	color: #003366;
    	text-decoration: underline;
    }
    a:hover {
    	color: #FF6347;
    	text-decoration: none;
    }
    #header {
    	margin-left: auto;
    	margin-right: auto;
    	height: 127px;
    	width: 790px;
    	background: url(images/header.jpg) no-repeat bottom #272E7F;
    	text-align: left;
    }
    #header h1 {
    	margin-left: 10px;
    	margin-top: 6px;
    	margin-bottom: 0px;
    	float: left;
    	color: #FFFFFF;
    	font-family: Verdana;
    	font-size: 11px;
    	font-weight: normal;
    	text-align: left;
    }
    #main_menu {
    	margin-bottom: 0px;
    	margin-right: 6px;
    	margin-top: 6px;
    	float: left;
    	color: #FFFFFF;
    	font-family: Verdana;
    }
    #main_menu li {
    	list-style-type: none;
    	display: block;
    	float: left;
    	margin-right: 4px;
    }
    #main_menu a:link, #main_menu a:visited {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    #main_menu a:hover {
    	text-decoration: underline;
    }
    
    #categories {
    	margin: 0px;
    	padding: 0px;
    	position: relative;
    	top: 77px;
    	left: 10px;
    	color: #FFFFFF;
    	font-size: 14px;
    	font-weight: bold;
    }
    #categories li {
    	list-style-type: none;
    	display: block;
    	float: left;
    	margin-right: 4px;
    }
    #categories a:link, #categories a:visited {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    #categories a:hover {
    	color: #FF6347;
    }
    
    #main {
    	margin-left: auto;
    	margin-right: auto;
    	padding: 2px;
    	width: 786px;
    	background: #FFFFFF;
    	border-left: 1px solid #336699;
    	border-right: 1px solid #336699;
    }
    .ad_box {
    	margin-bottom: 4px;
    	padding: 3px;
    	border: 1px solid #0099CC;
    	color: #333333;
    	text-align: center;
    }
    .ad_box_2 {
        padding: 3px;
        margin-bottom: 4px;
    	border: 1px solid #99CC66;
    	color: #333333;
    	text-align: center;
    }
    .content_box {
        margin-bottom: 4px;
        padding: 2px;
    	border: 1px solid #99CC66;
    }
    .content_box_2 {
    	margin-bottom: 4px;
    	padding: 2px;
    	border: 1px solid #0099CC;
    }
    h2 {
    	margin: 0px;
    	margin-bottom: 2px;
    	padding: 2px;
    	padding-left: 4px;
    	background: #99CC66 url(images/topbar2.png);
    	color: #FFFFFF;
    	font-weight: bold;
    	font-size: 11px;
    }
    h3 {
    	margin: 0px;
    	margin-bottom: 2px;
    	padding: 2px;
    	padding-left: 4px;
    	background: #0099CC url(images/topbar.png);
    	color: #FFFFFF;
    	font-weight: bold;
    	font-size: 11px;
    }
    h2 a:link, h2 a:visited {
    	color: #FFFFFF;
    	text-decoration: underline;
    }
    h2 a:hover {
    	text-decoration: none;
    }
    .content_box_2 input {
    	border: 1px solid #0099CC;
    }
    .index_files_left {
    	margin-bottom: 2px;
    	float: left;
    	width: 75px;
    }
    .index_files_right {
    	margin-bottom: 2px;
    	float: right;
    	width: 228px;
    }
    .played {
    	font-family: Arial;
    	font-size: 9px;
    }
    .file_link:link {
    	color: #336699;
    	font-weight: bold;
    	text-decoration: none;
    }
    .file_link:visited {
    	color: #336699;
    	font-weight: bold;
    	text-decoration: none;
    }
    .file_link:hover {
    	color: #FF6347;
    	font-weight: bold;
    	text-decoration: underline;
    }
    
    
    .pagination {
    	margin: 2px;
    	text-align: center;
    }
    .pagination a:link, .pagination a:visited {
    	padding: 1px;
    	border: 1px solid #CCCCCC;
    	color: #000000;
    	text-decoration: none;
    }
    .pagination a:hover {
    	border: 1px solid #99CC66;
    	color: #000000;
    }
    .pagination b {
    	padding: 1px;
    	border: 1px solid #CCCCCC;
    }
    .table_header {
    	float: left;
    	text-align: center;
    	font-weight: bold;
    }
    .table {
    	float: left;
    	text-align: center;
    }
    .separator {
    	margin-bottom: 1px;
    	padding-top: 1px;
    	border-bottom: 1px dotted #99CC66;
    	clear: both;
    }
    .content_left {
    	margin-top: 2px;
    	margin-bottom: 2px;
    	float: left;
    	font-weight: bold;
    }
    .content_right {
    	margin-top: 2px;
    	margin-bottom: 2px;
    	float: right;
    }
    .error_box {
    	margin-bottom: 4px;
    	padding: 3px;
    	border: 1px solid #FF3300;
    	background: #FADFDC;
    	color: #FF3300;
    	text-align: left;
    }
    .comment_box {
    	margin-bottom: 5px;
    	padding-bottom: 3px;
    	border-bottom: 1px dotted #99CC66;
    }
    .news_line {
    	margin-top: 5px;
    	border-top: 1px dotted #3399CC;
    }
    #champion_box {
        margin-bottom: 4px;
        padding: 2px;
    	border: 1px solid #99CC66;
    	background: url(images/cup.gif);
    	background-repeat: no-repeat;
    	background-position: 25% 50%;
    	text-align: center;
    }
    #sponsor {
    	margin-bottom: 4px;
    	padding: 4px;
    	border: 1px dotted #FF3300;
    	background: #FFCC33;
    	text-align: center;
    	font-weight: bold;
    }
    #score_game {
    	margin-left: auto;
    	margin-right: auto;
    	margin-bottom: 5px;
    	padding: 3px;
    	border: 1px solid #CCFF99;
    	width: 300px;
    }
    .register_info {
    	float: left;
    	width: 200px;
    	font-weight: bold;
    }
    .browse_file_box {
    	padding: 1px;
    	background: #F0FDF1;
    }
    .quote {
    	border: 1px dotted #009933;
    	margin: 2px;
    	margin-bottom: 6px;
    	padding: 3px;
    	text-align: left;
    }
    #frame {
    	font-size: 12px;
    	color: #FFFFFF;
    }
    #frame a:link, #frame a:visited {
    	color: #FFFFFF;
    	text-decoration: underline;
    	font-weight: bold;
    }
    #frame a::hover {
    	color: #FFFFFF;
    	text-decoration: none;
    	font-weight: bold;
    }
    #popup_box {
    	border: 1px solid #000000;
    	background: #FFFFFF;
    	margin: 5px;
    	padding: 3px;
    }
    #redirection_box {
    	margin-top: 50px;
    	margin-left: auto;
    	margin-right: auto;
    	padding: 5px;
    	width: 400px;
    	border: 1px solid #336699;
    	background: #FFFFFF; 
    	text-align: center;
    }
    #footer {
    	margin-left: auto;
    	margin-right: auto;
    	padding-top: 12px;
    	width: 790px;
    	height: 30px;
    	background: url(images/footer.png);
    	border-left: 1px solid #336699;
    	border-right: 1px solid #336699;
    	border-bottom: 1px solid #336699;
    	color: #FFFFFF;
    	text-align: center;
    }
    #footer a:link, #footer a:visited {
    	color: #FFFFFF;
    	text-decoration: underline;
    	font-weight: bold;
    }
    #footer a:hover {
    	text-decoration: none;
    }
    
    #glossymenu{
    	position: relative;
    	padding: 0 0 0 34px;
    	margin: 0 auto 0 auto;
    	background: url(images/menub_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;
    }
    
    #glossymenu li.current a, #glossymenu li a:hover{
    	color: #fff;
    	background: url(images/menub_hover_left.gif) no-repeat;
    	background-position: left;
    }
    
    #glossymenu li.current a b, #glossymenu li a:hover b{
    	color: #fff;
    	background: url(images/menub_hover_right.gif) no-repeat right top;
    }
    I have created a div inside the "main" div, and placed the menu there. Thanks in advance for any insight you might offer.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    The CSS looks for the <b> tag inside the list element. The case is that you missed the highlighted in your markups (HTML).

    See if addingl the highlighted helps:
    Code:
    <li><a href="http://n2flash.com/category/1/Action/1.html"><b>Action</b></a></li>
    <li>  <a href="http://n2flash.com/category/2/Other/1.html"><b>Other</b></a></li>
    <li>  <a href="http://n2flash.com/category/3/Puzzle/1.html"><b>Puzzle</b></a></li>
    <li>  <a href="http://n2flash.com/category/4/Racing/1.html"><b>Racing</b></a></li>
    <li>  <a href="http://n2flash.com/category/5/Shooting/1.html"><b>Shooting</b></a></li>
    <li>  <a href="http://n2flash.com/category/6/Sports/1.html"><b>Sports</b></a></li>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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

    tonyking (05-30-2008)

  4. #3
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I think what rangana said is right, and also be sure to add the <li class="current"> on the pages that you want a tab to already be shown.

    Let us know how it goes.
    -Matt

  5. The Following User Says Thank You to mattpowers For This Useful Post:

    tonyking (05-30-2008)

  6. #4
    Join Date
    Jan 2007
    Posts
    82
    Thanks
    30
    Thanked 18 Times in 17 Posts

    Default

    Thanks a ton! That was definitely the problem. I was trying to incorporate this into a bunch of php and overlooked the bold tags. This works like a charm now! Yay!

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
  •