*

Author Topic: PHP CSS Variable Already Done  (Read 235 times)

Offline admin

  • Administrator
  • Newbie
  • *****
  • Posts: 30
  • Karma: +0/-0
    • View Profile
PHP CSS Variable Already Done
« on: September 20, 2017, 07:15:28 PM »
For copy and paste purposes. Of course you can always just hire me for coding.

Code: [Select]
$css='<style type="text/css" media="screen">'."\n";




$css.='a:link { color:navy; text-decoration: underline; }'."\n";

$css.='a:hover {color:cyan;text-decoration:underline;background:green;}'."\n";


$css.='body '."\n";


$css.='    {background-color: #FFFF99;'."\n";

$css.='}'."\n";
$css.='</style>'."\n";


Use that for auto-generated pages which for some reason you do not want to have an external css file.

Rick
ComputerHelp808@gmail.com

 

Recent

Members
Stats
  • Total Posts: 44
  • Total Topics: 44
  • Online Today: 8
  • Online Ever: 38
  • (September 02, 2017, 11:52:22 PM)
Users Online
Users: 0
Guests: 1
Total: 1