Welcome Guest, Not a member yet? Register   Sign In
URLS inside CSS
#2

[eluser]xwero[/eluser]
it's possible if you put your css code in a php file.
Code:
<link href="<?php echo base_url()?>css/drop-down-menu.php" type="text/css" rel="stylesheet" />
// in the file
#nav a.main {    
      background:url("<?php echo base_url()?>images/tableft2.png") no-repeat left top;
      margin:0;
      padding:0 5px 0px 1px;    
      text-decoration:none;
      width:7em;
      }

Css isn't a dynamic language. In xhtml 2 you can add a src attribute to all elements which moves the images out the css files.


Messages In This Thread
URLS inside CSS - by El Forum - 04-10-2008, 05:18 AM
URLS inside CSS - by El Forum - 04-10-2008, 05:37 AM
URLS inside CSS - by El Forum - 04-10-2008, 08:15 AM
URLS inside CSS - by El Forum - 04-10-2008, 11:33 AM
URLS inside CSS - by El Forum - 04-10-2008, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB