xezus Posted May 22, 2013 Share Posted May 22, 2013 Hi, I would like to ask if there is any way how could I access smarty variable in css file. I would be glad for any response. Link to comment Share on other sites More sharing options...
Mellow Posted May 22, 2013 Share Posted May 22, 2013 Hi, As far as I know, this is not possible ! But you can define a css style in a .tpl file using smarty variables {assign var='MydivWidth' value='300'} {assign var='MydivColor' value='ff0000'} <style type="text/css"> .Mydiv {ldelim} width: {$MydivWidth}px; color: #{$MydivColor}; {rdelim} </style> Regards Link to comment Share on other sites More sharing options...
xezus Posted May 22, 2013 Author Share Posted May 22, 2013 Thanks you very much Mellow. This solution fixed my problem. Link to comment Share on other sites More sharing options...
vekia Posted May 23, 2013 Share Posted May 23, 2013 hello thanks for solution Mellow i marked this thread as solved regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now