1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Using a style property next to a string

Discussion in 'Styling and Customization Questions' started by Mike Creuzer, Aug 1, 2013.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    So I didnt know how to word the title, so let me explain.

    I have a variable, @var, and this evaluates to some scalar number, say 10. But when I use it in the style properties, I want it to be 10px.

    I've tried {xen:calc @var}px and other variances, but it's not working.

    Any ideas?
  2. Chris D

    Chris D XenForo Developer Staff Member

    {xen:property var}px; should do the trick :)
    Mike Creuzer likes this.
  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    Perfect, thanks, forgot about that. So many things you can do with XenForo.
    Steve F likes this.

Share This Page