I decided to use Include_once for my websites navbar because im constantly changing the text and links and doing it file by file is tedious.
but for some reason when I use include_once to include the navbar it makes certain elements of the website display differently, for example a table at the bottom of the page will appear stretched or a box will be twice the size it should be.
example of my include_once navbar file -
<html>
<header>
<div class="headbot">
<div class="container">
<div class="navbar navbar_ clearfix extra">
<div class="nav-collapse nav-collapse_ collapse">
<ul class="nav sf-menu">
<li class="active"><a href="index.html"><strong class="text">Home</strong><span>Home</span></a></li>
<li><a href="http://google.com/"><strong class="text">News</strong><span>News</span></a>
<ul>
<li><a href="CaseStudy.html"><strong class="text">Case Studies</strong></a></li>
<li><a href="http://google.com"><strong class="text">Latest News</strong></a></li>
<li><a href="Events.html"><strong class="text">Upcoming Events</strong></a></li>
</ul>
</li>
<li><a href="ContactUs.html"><strong class="text">Contact Us</strong><span>Contact Us</span></a></li>
</ul>
</div>
</div>
</div>
</div>
and including it like this at the top of my index.php
<?php
include_once('includes/navbar.php');
?>
anyone have any thoughts ?