Muhammad Arif Muhammad Arif - 2 years ago 88
PHP Question

How to add css in php file?

Here is my php code:

if($_GET['cmd']=='7') {

and here is my HTML

<a id="default" href="#" style="color:#000; text-decoration:none"><? echo date('M dS Y' ,strtotime($startdate)); ?> to <? echo date('M dS Y' ,strtotime($enddate)); ?></a>

I want to add


using php.

How i do this?

Answer Source

you create a file called css.css or whatever. put your #default styles in that file. and at top of this page add before opening the php brackets:

 <link rel="stylesheet" type="text/css" href="css.css" media="screen">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download