Monkuar Posted March 17, 2012 Share Posted March 17, 2012 This doesn't work: <style type="text/css" media="all">@import url(style/'.$skin.'.css);</style> $skin is = "Sky Blue"; If $skin is = "Sky Blue"; this works: <link rel="stylesheet" type="text/css" href="style/Sky Blue.css"> It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? Quote Link to comment Share on other sites More sharing options...
smerny Posted March 17, 2012 Share Posted March 17, 2012 It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? http://php.net/manual/en/function.rawurlencode.php Quote Link to comment Share on other sites More sharing options...
Monkuar Posted March 17, 2012 Author Share Posted March 17, 2012 It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? http://php.net/manual/en/function.rawurlencode.php Lifesaver, Thanks bro Solved ! Quote Link to comment Share on other sites More sharing options...
requinix Posted March 17, 2012 Share Posted March 17, 2012 Also url() can be used with quotes. 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.