View Single Post
Old 12-11-2012, 09:11 PM   PM User | #1
beaverking1989
New to the CF scene

 
Join Date: Nov 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
beaverking1989 is an unknown quantity at this point
How to link a CSS page to my PHP script file

Hello guys!

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:

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="webcss.css" />
<script type="text/javascript" src="validation.js"></script>
<script type="text/javascript" src="ajax.js"></script>
</head>
<body>
<h1>Student Marks</h1>

<div id="navigation">
<button type="button" onclick="enterMarksAjaxRequest()">
Enter Marks
</button>
<button type="button" onclick="displayDataAjaxRequest()">
Display Data
</button>
</div>

<!-- This content field will be updated by various ajax calls. -->
<div id="content">
</div>

</body>
</html>


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.
beaverking1989 is offline   Reply With Quote