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 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.