Me, and one of my friend is making a cms using php. I don't know php I am just doing css styles only my friend is doing php. Ok let me describe my problem.
There are 3 main files
1) Top.php (top content and banner all top part is in this file) 2) Navigation.php (navigation part) 3)Footer.php (footer content and all)
These 3 files are including in all other files like homepage, inner page etc. Eg of top.php Some php coading and … <div id="top"> <div id="top_logo"> <img src="images/logo.jpg" alt="The Association of Independents In Radio" name="logo" border="0" id="logo" /></div> <div id="utility_admin">Logged in as <span class="style1"><?=$_SESSION["AdminUserName"];?></span> on <span class="style2"><?= $LoginDate . " @ " . $_SESSION["LoginTime"];?></span></div> </div>
Here I am not including css file but in the main page like home page I am linking css file. And I am calling all other (top.php, navigation.php, footer.php) etc This is working in IE, Mozilla, Opera 7+, NS 7+.
But my client using Mac he wants this in safari. In safari the css is not working properly the including files like (top.php, navigation.php ) are don’t have css styles.
Later I tried to include css in (top.php, navigation.php etc.) But no change same effect which I saw before.
Can u please help me for this solution? The files are not uploaded, or I will give u the link .
you need to link the style sheet in the top.php file and only the top.php file. i build sites similar to what you have laid out here, and you should only link it once.
i second climaxdesigns on that one. I had the same problem some time ago and found that the css is needed ONLY once in the first included file.
I don't know what your friend's style of programing is but if I may offer a suggestion: use a file that is included all around your CMS that contains required elements for every page (connection to the database, session_start() - if used and the link for the css). As this page is always the first one included (on most occasions) you shouldn't have any problems with any of the above