Jump to content

PHP - CSS


Drezard

Recommended Posts

Hello, I have a class definition in a file called Class.php:

 

class NEW {

function DISPLAY() {

  echo "<p> Display </p>";

}

}

 

And then in a new file called use.php I have this code:

 

<html>
<head>
<style type="text/css">
p {font-family: courier}
</style>
</head>

<body>

<?php

include('class.php');

$CLASS = new NEW;

$CLASS->DISPLAY();

?>

</body>
</html>

 

Okay, So it basically displays the word "Display". But, I wont it to display the word "display" in my style. How do i do it?

 

- Cheers, Daniel

Link to comment
https://forums.phpfreaks.com/topic/42045-php-css/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.