jonathansh1115 Posted October 19, 2017 Share Posted October 19, 2017 i have some css tags in the header for my stylesheet and bootstrap and i tried to include the header.html as learnt from the book but it failed to load up instead it load up plain html. -My index.php: <?php require ('includes/config.inc.php'); $page_title = 'Homepage'; include ('includes/header.html'); ?> <?php include ('includes/footer.html'); ?> -My header.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo $page_title; ?></title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="nav.css" rel="stylesheet"> <script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script> </head> <body> <nav class="navbar navbar-default"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">WEBNAME</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="../index.php">Home</a></li> <li><a href="../pages.html">Recent</a></li> <li><a href="../posts.html">Posts</a></li> <li><a href="../users.html">Users</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Welcome</a></li> <li><a href="login.php">Logout</a></li> </ul> </div><!--/.nav-collapse --> </div> </nav> PLEASE HELP Link to comment Share on other sites More sharing options...
Larry Posted October 22, 2017 Share Posted October 22, 2017 Where is your CSS file located relative to your index.php script? Link to comment Share on other sites More sharing options...
jonathansh1115 Posted October 25, 2017 Author Share Posted October 25, 2017 (edited) Where is your CSS file located relative to your index.php script? in a folder call css but actually i did it and got it done so thank you Edited October 25, 2017 by jonathansh1115 Link to comment Share on other sites More sharing options...
Larry Posted October 25, 2017 Share Posted October 25, 2017 Awesome, kudos! Link to comment Share on other sites More sharing options...
Recommended Posts