Grow your CSS skills. Land your dream job.

footer links not working when use include

  • # September 9, 2013 at 7:09 am

    Hi my footer links are not working when I have include it in my index.php or other files only my header links working.

    my common/footer.php

    <footer>
    <div class="container">
    <div class="row">
    
    <div class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
    <h4 class="line3 center"><span>Navigation</span></h4>
    <ul class="footer-links">
    <li><a href="#">Home</a></li>
    <li><a href="http://www.carrarawebsitesolutions.com/contact.php">Contact Us</a></li>
    <li><a href="#">About Our Company</a></li>
    </ul>
    </div>
    
    </div>
    </div>
    </footer>
    

    This is in my index.php

        <?php include'common/header.php'; ?>
    
        <div class="container">
    
        <div class="row">
    
        <div style="z-index:1020" class="col-xs-12 col-sm-4 col-md-4 col-lg-4 pull-left">   
        <div class="panel panel-default">
        <div class="panel-heading">
        <h4>Hosting Provider</h4>
        </div>
        <div class="panel-body">
        </div>
        </div>
        </div>
    
        </div>
    
        </div> <!-- Container Div -->
    
        <?php include'common/footer.php'; ?>
    
    # September 9, 2013 at 7:34 am

    It’s becaase your div containing the copyright is inside the div with a class of row so it’s sitting on top of the others.

    Move it out of the row div…since it’s 100% wide anyway and it’s fine.

    # September 9, 2013 at 7:56 am

    Thank you going to be going to a course soon cost a lot of money for courses but over here goverment pay for it unless you earn over $51.000 which I don’t yet course is $25.000

    I am still learning html nearly and end of it few heralds to go then php and javascript.

    Is that best way to learn

    Trying to learn as much as i can before had thats why closed computer store.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".