Hola.js DocumentationBlogBlogSupport UsSupport UsAboutAboutContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Hola.js Intro
  • Install Hola.js
  • Hello World
  • Event Methods
    • Blur(callback)
    • Change
    • Focus
    • Hover
    • Keydown
    • Keyup
    • Mousemove
    • Off
    • On
    • One
    • Submit
    • Trigger
  • Filtering Methods
    • Eq
    • Filter
  • Insertion Methods
    • After
    • Append
    • Before
    • Prepend
  • Selection and Manipulation Methods
    • Addclass
    • Attr
    • CSS
    • Hide
    • HTML
    • Removeattr
    • Removeclass
    • Show
    • Text
    • The $ Object
    • Toggleclass
  • Traversal Methods
    • Children
    • Find
    • Parent
    • Siblings
  • Hola.js Intro
  • Install Hola.js
  • Hello World
  • Blog
  • Support Us
  • About
  • Contact ↗ (opens in a new tab)
  • Event Methods
    • Blur(callback)
    • Change
    • Focus
    • Hover
    • Keydown
    • Keyup
    • Mousemove
    • Off
    • On
    • One
    • Submit
    • Trigger
  • Filtering Methods
    • Eq
    • Filter
  • Insertion Methods
    • After
    • Append
    • Before
    • Prepend
  • Selection and Manipulation Methods
    • Addclass
    • Attr
    • CSS
    • Hide
    • HTML
    • Removeattr
    • Removeclass
    • Show
    • Text
    • The $ Object
    • Toggleclass
  • Traversal Methods
    • Children
    • Find
    • Parent
    • Siblings
Question? Give us feedback → (opens in a new tab)Edit this page
Selection and Manipulation Methods
CSS

css

This method can be used to set or retrieve the value of a CSS property for the elements.

css: function(property, value) {
  this.elements.forEach(function(element) {
    element.style[property] = value;
  });
  return this;
},
 
// Get the value of a CSS property for the first element
css: function(property) {
  return getComputedStyle(this.elements[0])[property];
}
AttrHide

Hola.js Doc