Link to home page in header doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RuteCarvalho
    New Member
    • May 2013
    • 1

    #1

    Link to home page in header doesn't work

    HTML

    Code:
    <body> 
    <header> 
    <h1><a href="index.html">TITLE</a></h1> 
    </header> 
    
    <div id="wrap"> 
    <nav> 
    <ul> 
    <li><a href="Pag1.html"> A </a></li> 
    <li><a href="Pag2.html"> B </a></li>
    </nav>
    ...
    
    CSS
    
    body{
    	background-color: #71e3c6;
    	padding: 80px 15px 100px 15px;
    }
    
    body>header {
    	position: fixed;
    	top: 0;
    	left: 0;
    	right: 0;
    	z-index: -10;
    }
    
    body>header h1 {
    	font-family: 'Anonymous Pro', sans-serif;
    	word-spacing: -8px;
    	font-weight: 400;
    	font-size: 40px;
    	line-height: 30px;
    	margin: 24px;
    	text-align: center;
    }
    
    body>header h1 a{
    	text-decoration: none;
    	color: white;
    I have this header with the respective css. When I press 'TITLE' text I want to go to homepage (index.html), like when I press 'A' and it goes to 'pag2' but it does't work...
    Last edited by Rabbit; May 5 '13, 03:44 AM. Reason: Please use code tags when posting code.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do you have a demo page, so that we can test the problem? (I’m sure that when I make a local copy, it would work as intended)

    Comment

    Working...