Skip to content
DOM element css helper
JavaScript
Find file
Latest commit e2293ab @stephenmathieson stephenmathieson Merge pull request #14 from component/pin-deps
component.json: Pin deps

Readme.md

css

jQuery's css() method.

Installation

Install with component(1):

$ component install component/css

API

css(el, prop)

Get the computed value of the prop on el.

css(p, 'color')

css(el, prop, value)

Set the CSS value on the prop on el

css(p, 'color', 'red')

css(el, styles)

Set a styles object to el

css(p, {
  color: 'red',
  background: 'blue'
})

TODO

License

MIT

Something went wrong with that request. Please try again.