Announcement

Collapse
No announcement yet.

Can variables be used inside CSS?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can variables be used inside CSS?

    I've got some background images and rather than use a relative URL I'd like to use the full path, i.e. url(http://www.mysite.com/forum/image.jpg), in the CSS.

    Is there a way of entering something like url({$address['bburl']}/image.jpg) instead and having vBulletin parse the CSS?

  • #2
    PHP variables do not work in the CSS fields.

    One option is to use a replacement variable:

    Admin CP -> Styles & Templates -> Replacement Variable Manager -> [Add New Replacement Variable]

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X