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? Quote Link to comment Share on other sites More sharing options...
Solution Yohanne Posted July 4, 2013 Author Solution 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.