SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict goldensona's Avatar
    Join Date
    Jun 2011
    Posts
    226
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    footer links problems

    Hi
    i set position:fixed for footer .then when i click the links in the footer , if body contain any links it also get selected,but footer link only redirect. why this happen

    my footer code
    HTML Code:
    .footer
    {
    	bottom: 0;
            left: 0;
    	 position:fixed;
    	width:100%;
    	height:49px;
    	background-image:url(../img/footer.png);
    	background-repeat:repeat-x;
    	background-position:bottom;
     	
       		
    }
    

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Ho goldensona. This looks more like a CSS question than PHP, so moved hither.

    Could you explain in more detail what's happening, or provide a link so we can see this in action?

  3. #3
    SitePoint Addict goldensona's Avatar
    Join Date
    Jun 2011
    Posts
    226
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi

    HTML Code:
    .header{
            top:0;
    	left:0;	
    	position: fixed;
    	width:100%;
    	height:50px;
    	background-image:url(../img/header.png);
    	background-repeat:repeat-x;
    }
    .content{
    padding_bottom:49px;
    }
    .footer
    {
    
    	bottom: 0;
            left: 0;
    	 position:fixed;
    	width:100%;
    	height:49px;
    	background-image:url(../img/footer.png);
    	background-repeat:repeat-x;
    	background-position:bottom;
    }

    i have used above css for fix header and footer at top and bottom, then my contents are scolled now. when i have click the links in the footer menus , if contents have any link, that also get selected, i dont know why background link get affect when i make click on footer links.


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
  •