Help: Navigation arrow problem... (Earn $3)

Discussion in 'CSS' started by cmpolis, Nov 12, 2006.

  1. #1
    Hello Everyone,
    I am using the following design: http://www.oswd.org/design/preview/id/2876 for www.servespot.net , I didnt change the class for the active navigation thing which has the arrow on it, however, now my site has two arrows on it. Whoever helps me the most, I will send $3 via paypal or if i get good help from multiple people, I will send to each person.

    Class for the active navigation link (I didnt change anything):
    	.bar li.active { 
    		background: #E0691A url(bar.gif) no-repeat center top; 
    		color: #fff;
    		font-weight: bold; 
    		padding: 7px 10px 6px 10px;
    	}
    Code (markup):
    Navigation bar code:
    		<div class="bar">
    			<ul>
    				<li class="browse_category"></li>
    				<li class="active"><a href="index.html" accesskey="h">Home</a></li>
    				<li><a href="network.html" accesskey="n">Network</a></li>
    				<li><a href="gameservers.html" accesskey="g">Game Servers</a></li>
    				<li><a href="dedicatedservers.html" accesskey="d">Dedicated Servers</a></li>
    				<li><a href="forum.html" accesskey="f">Forum</a></li>
    				<li><a href="contact.html" accesskey="c">Contact Us</a></li>
    			</ul>
    		</div>
    Code (markup):
    bar class (I didnt change):
    .bar { 
    	clear: both;
    	font-size: 1.1em;
    	height: 30px; 
    	color: #FFF;
    	margin: 0 0 0 0px; 
    	background: #FF9148;
    }
    Code (markup):
    Best Regards,
    Chris
     
    cmpolis, Nov 12, 2006 IP
  2. seamus.hogan

    seamus.hogan Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    That renders fine for me what browser r you using?
     
    seamus.hogan, Nov 12, 2006 IP
  3. Dan_A

    Dan_A Peon

    Messages:
    65
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    At the start of the stylesheet, use
    /*
    a { color: #E0691A; background: inherit;}
    */
    a { background: inherit inherit inherit inherit inherit; color: #E0691A; }
    Then in the bar rules
    /*
    .bar li a {
    font-weight: bold;
    color: #FFF;
    background: inherit;
    text-decoration: none;
    }

    */
    .bar li a { background: inherit inherit inherit inherit inherit; font-weight: bold; color:#FFF; text-decoration: none; }
    .bar li a:hover {
    color: #E0691A;
    background: inherit;
    }
    .bar li.active a:hover {
    background: #E0691A;
    color: #E0691A;
    }
    If it works, remove commented rules.
     
    Dan_A, Nov 12, 2006 IP
  4. cmpolis

    cmpolis Peon

    Messages:
    480
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I was using Firefox 1.5, but I upgraded to 2.0 and it still does not work. When I edit and preview it in Dreamweaver 2004, it looks fine. What browser does it work in?

    Thanks for the code, however, I tried it and it didnt fix it.

    Thanks everyone!
     
    cmpolis, Nov 12, 2006 IP
  5. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #5
    
    .bar li a { 
    	font-weight: bold;
    	color: #FFF; 
    	text-decoration: none;
    	[b]background-image: none;[/b]
    } 
    
    Code (markup):
    Add "background-image: none;".
     
    SoKickIt, Nov 13, 2006 IP
  6. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i agree with SoKickIt, just add it also on the hover so when they hover the background arrow does not show up as well... i tested it in IE worked fine before and after, just firefox gave the issue and with this code it works and is tested

    
    	.bar li a { 
    		font-weight: bold;
    		color: #FFF; 
    		background: none;
    		text-decoration: none;
    	} 
    	
    	.bar li a:hover { 
    		color: #E0691A; 
    		background: none;
    	} 
    
    Code (markup):
     
    DatR, Nov 14, 2006 IP
  7. cmpolis

    cmpolis Peon

    Messages:
    480
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for the help everyone, however, its always worked with IE, I want to get it to work with Firefox as well as IE.
     
    cmpolis, Nov 15, 2006 IP
  8. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    the code above is the fix for firefox
     
    DatR, Nov 15, 2006 IP
  9. cmpolis

    cmpolis Peon

    Messages:
    480
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks everyone! SoKickIt and DatR, PM me your paypal.

    THREAD CLOSED
     
    cmpolis, Nov 16, 2006 IP
  10. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #10
    SoKickIt, Nov 16, 2006 IP
  11. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    DatR, Nov 21, 2006 IP