How to link a CSS page to my PHP script file
I'm having problems attempting to link my CSS page to my php file. Both files are in the same folder, in addition to the other php files. The code for my php file is as follows:
<link rel="stylesheet" type="text/css" href="webcss.css" />
<button type="button" onclick="enterMarksAjaxRequest()">
<button type="button" onclick="displayDataAjaxRequest()">
<!-- This content field will be updated by various ajax calls. -->
The CSS file is called webcss.css but it's not linking up and showing any changes upon loading up on the browser using apache.
Any ideas? Thanks for your time.
Show us the .css file also.
This hasn't a thing to do with PHP.
Moving from PHP forum to HTML/CSS.
It doesn't matter of the CSS is in the same directory as the PHP file. Since you are linking it in using the <link> html tag, you must place it in the path governed by the html root since its relying entirely on the client to access this. So with the just the
Okay thanks for the help! Much appreciated :)
|All times are GMT +1. The time now is 10:05 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.