This is what I'm trying to do: I have this website with lots of pages. All of them have something similar to this:
<head>
<link rel="stylesheet" type="text/css" href="img_css/style.css" media="all" />
</head>
But I want my css rules to be inline. Like this:
<style>
div{color: blue;}
p{padding: 5px;}
/* ect... */
</style>
Of course this is not recommended due to maintenance difficulties. But what if I put all css rules in a single php file and do an include on every page? Like this:
<head>
<style type="text/css">
<?php include_once "img_css/new_style.php"; ?>
</style>
</head>
I need to know if there's anything wrong with this method. Can I really do this? Do you guys have any advice or warning about this kind of thing? Do you approve?
Thanks in advance for any reply!