Yohanne Posted July 4, 2013 Share Posted July 4, 2013 Hi all, i have 3 files with .css and 2(.php) first i have this-> 1.php $public = dirname(__FILE__).'../assits/public/home.php'; require_once($public); 2.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Under The Bridge</title> <link href="style.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> sample </body> </html> style.css body { background-color:#000000; } now when i trying to view the result, the background from css could not effect, while the the txt "sample" is there. why? and where i am doing wrong? Link to comment https://forums.phpfreaks.com/topic/279852-passing-css-value-to-php/ Share on other sites More sharing options...
Yohanne Posted July 4, 2013 Author Share Posted July 4, 2013 Hi all, i have 3 files with .css and 2(.php) first i have this-> 1.php $public = dirname(__FILE__).'../assits/public/2.php'; require_once($public); 2.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Under The Bridge</title> <link href="style.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> sample </body> </html> style.css body { background-color:#000000; } now when i trying to view the result, the background from css could not effect, while the the txt "sample" is there. why? and where i am doing wrong? Link to comment https://forums.phpfreaks.com/topic/279852-passing-css-value-to-php/#findComment-1439383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.