Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JQuery Nav Bar Issues

    So I have been trying to work with this nav bar and i have most of the quirks worked out but for some reason the links view as being smaller until selected then they all snap the the full size of what i want them to always be.

    website is
    i-andrew.info

    i have put up my most recent files but i personally cannot see this due to blocks where i am. So "I" am looking at the local files.

    I am still kind of new at all this.

    Thanks,
    Andrew

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    There is a lot of help here.

    Use the Search facility. Single words often work best.

    But we do need to see your code to help you.
    Or better still, a link to your site.


    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello AndrewLi,
    Your menu is getting styled from several places. You have issues with how you direct your CSS toward anchors.
    This bit quoted here makes the active state of all links take on this styling -
    Code:
    		
    #footerNav 	a:link,a:active,a:visited
    	{/*display:block;*/
    	width:100px;
    	height:25px;
    	/*background:#85A5CC;
    	border:1px solid #000000;*/
    	margin-top:2px;
    	text-align:center;
    	text-decoration:none;
    	font-family:arial;
    	color:#08A828;
    	line-height:25px;
    	overflow:hidden;
    	float:left;}
    For that to apply to only anchors in the footer it would need to look more like this - #footerNav a:link, #footerNav a:active, #footerNav a:visited

    Does that make sense?
    See specificity here for more a more in depth explanation at directing CSS styling.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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