Weblutions CSSLibDocs > Javascript > Variable Tags

Variable Tags

The CSS Library comes with various variable classes which can be used to set items in a more customized way if one of the existing classes in the CSS build are not available.

Currently there's only a handful of these variable tags. However, more are always being added.

VariableApplied Class
bg-colorbackground-color
colorcolor
border-colorborder-color
bg-imagebackground-image
fillfill
font-sizefont-size
wwidth
hheight
filterfilter
ppadding
mmargin

All of these are used in the same format. apply the variable name and square brackets with the value. For example color[#FFFFFF] will set the color to white. Values inside these square brackets can be prefixed or suffixed with the below

  • #π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯ will set a color to the hexadecimal supplied
  • url(π‘₯) will apply a URL, mostly only usable in bg-image
  • π‘₯px will apply a pixel amount
  • π‘₯rem will apply the rem amount
  • π‘₯% will apply the supplied percentage
  • π‘₯em will use add the em value
  • π‘₯vw will apply the supplied view width


Suggest an edit

Review this page

faxes