Forum Moderators: not2easy
I have been developing a new site using PHP and MySQL.
If I place the stylesheet in the head of the document, all works OK and everything is styled as expected. However, if I import the stylesheet, it is ignored and nothing gets styled.
So, am I missing something? Is there a different way of doing this when using PHP?
I am importing using the following:
<style type="text/css">
<!--
@import url("../../../blah.css");
-->
</style>
The document I am importing to has an .ihtml extension.
Hope I have given enough information.
Many thanks
Spook
And you were both right, it was the path that was incorrect for some strange reason.
I use Dreamweaver MX, though of late I seem to do more hand coding. The original path to the css file was the same though whether I created it, or it was created by Dreamweaver [on a point and click basis], so I was surprised when it was wrong. I have now replaced it with an absolute path:
@import "C:/phpdev/www/website/style.css";
and it works fine.
Could the problem be because I am using a local server, ie phpdev on my own pc?
Thanks for your advice.
Spook
<Edited>
Oops, sorry, I see once you fixed the path it did work correctly.
<Edited>