OM2 Posted July 28, 2008 Share Posted July 28, 2008 Is it OK to have 2 declerations of the same CSS file? I have PHP code that gives the location of the CSS file on my server online. That gives me a problem: when I'm editing on my PC, I have no idea what I'm doing because I can't see the CSS. So, I came up with the bright idea of declaring the CSS file twice: <link href="myStyles.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $myStyles ?>" rel="stylesheet" type="text/css" /> Erm: it seems to be working fine. When viewing on the server, both lines above are valid. I assume that the second decleration over writes the first. AND, before anyone says: no, it's not good enough for me to just have the first line. Yes, it will work fine when viewed on my server. But, for what I'm doing, I *have* to have the PHP! Thanks. OM Link to comment https://forums.phpfreaks.com/topic/116909-is-it-ok-to-have-2-declerations-of-the-same-css-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.