Welcome Guest, Not a member yet? Register   Sign In
Background image in CSS - How to use base_url() in a CSS file
#4

[eluser]InsiteFX[/eluser]
Here is another way of doing...

Code:
<?php
    header('Content-type: text/css');
    $img_url = base_url();
?>

.ie6hack {position:absolute; top:0px;}

* html img.logo {
    background:none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $img_url;?>/logo.png', sizingMethod='crop');
}

Name yourname.php


Enjoy
InsiteFX


Messages In This Thread
Background image in CSS - How to use base_url() in a CSS file - by El Forum - 03-05-2010, 06:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB