I am developing a website in php. I have a
navigation.php page, a
design.php page and a
footer.php page. All the three pages have their own internal CSS. I am adding all the three pages in
index.php using include command.
Something like this:
<?php include 'navigation.php'; include 'design.php'; include 'footer.php'; ?>
But as some of the html elements in navigation.php and footer.php are identical like unordered lists
li but their CSS is different in both the files. But when I open
index.php page some of the parts of
footer.php get messed up due to different CSS for same html elements in
navigation.php. But when I open them separately no problem is there.
Pages are like this:
<style> ....css... </style> <body> <ul> <li>Home</li> <li>Sign Up</li> <li>Log In</li> </ul> </body>
This is just sample code. How can I solve this problem?