logo
  •  Home
  •  Free Tools
  • Tutorials
  • Article
  • Trending
  1. home
  2. Tutorials
  3. Tutorial
  • jQuery tutorial
  •  jQuery Introduction
  •  How we can get jQuery?
  •  jQuery Syntax
  •  jQuery Selectors
  •  jQuery Events
  •  jQuery hide()
  •  jQuery show()
  •  jQuery toggle()
  •  jQuery Fade
  •  jQuery Slide
  •  jQuery Animation
  •  jQuery Stop
  •  jQuery Chaining
  •  jQuery Callback
  •  jQuery Get
  •  jQuery Set
  •  jQuery Add
  •  jQuery Remove
  •  jQuery CSS Classes
  •  jQuery css()
  •  jQuery Traversing
  •  jQuery Ancestors
  •  jQuery Descendants
  •  jQuery Siblings()
  •  jQuery Filtering
  •  jQuery Ajax()
  •  jQuery Load
  •  jQuery Ajax Get
  •  jQuery Ajax Post
  •  jQuery noConflict()
  •  jQuery Filters
  •  siblings
  •  ancestor descendant
  •  Hierarchy :-parent > child
  •  prev + next
  •  prev
  •  animated
  •  eq()
  •  even
  •  gt()
  •  header
  •  lang()
  •  last
  •  not()
  •  odd
  •  root
  •  contains
  •  empty
  •  has()
  •  parent
  •  hidden
  •  visible
  •  [name| = "value"]
  •  [name* = "value"]
  •  [name~ = "value"]
  •  [name$ = "value"]
  •  [name^ = "value"]
  •  [name = "value"]
  •  first-child
  •  first-of-type
  •  last-child
  •  last-of-type
  •  nth-child()
  •  nth-of-type()
  •  nth-last-of-type()
  •  only-child
  •  only-of-type
  •  button
  •  checkbox
  •  checked
  •  SELECTORS
  •  enabled
  •  focus
  •  file
  •  image
  •  input
  •  password
  •  radio
  •  rest &selected
  •  submit
  •  text
  •  .attr()
  •  .prop()
  •  .removeAttr()
  •  .removeProp()
  •  .val()
  •  jQuery.data()
  •  jQuery.hasData()
  •  jQuery.removeData()
  •  .removeData()
  •  .addClass()
  •  .css()
  •  .jQuery.cssHooks
  •  .hasClass()
  •  .removeClass()
  •  .toggleClass()
  •  offset()
  •  offsetParent()
  •  position()
  •  scrollLeft()
  •  scrollTop()
  •  .clone()
  •  .detach()
  •  .empty()
  •  .remove()
  •  .unwrap()
  •  .wrap
  •  .wrapAll()
  •  .wrapplnner()
  •  .after()
  •  .before()
  •  .insertAfter()
  •  .insertBefore()
  •  .eq()
  •  .filter()
  •  .first()
  •  .has()
  •  .is()
  •  .last()
  •  .map()
  •  .not()
  •  .slice()
  •  add()
  •  andSelf()
  •  contents()
  •  each()
  •  end()
  •  .addBack()
  •  .children()
  •  .closest()
  •  .find()
  •  .next()
  •  .nextAll()
  •  .nextUntil()
  •  .parent()
  •  .parents()
  •  .parentsUntil()
  •  .prev()
  •  .prevAll()
  •  .prevUntil()
  •  .siblings()
  •  .error()
  •  .resize()
  •  .scroll()
  •  .blur()
  •  .change()
  •  .focus()
  •  .select()
  •  .submit()
  •  .holdReady()
  •  .load()
  •  .ready()
  •  .unload()
  •  .hide()
  •  .show()
  •  .toggle()
  •  slideDown
  •  slideToggle
  •  .animate()
  •  .clearQueue()
  •  .delay()
  •  .dequeue()
  •  .jQuery.dequeue()
  •  .finish()
  •  .jQuery.fx.interval()
  •  .jQuery.fx.off()
  •  .queue()
  •  .jQuery.queue()
  •  .stop()
  •  .fadeIn()
  •  .fadeOut()
  •  .fadeTo()
  •  .fadeToggle()
  •  .ajaxComplete()
  •  .ajaxError()
  •  .ajaxSend()
  •  .ajaxStart()
  •  .ajaxStop()
  •  .ajaxSuccess()
  •  .jQuery.param()
  •  .serialize()
  •  .serializeArray()
  •  jQuery.each()
  •  jQuery.extend()
  •  jQuery.globalEval()
  •  jQuery.grep()
  •  jQuery.inArray()
  •  jQuery.isArray()
  •  jQuery.isEmptyObject()
  •  jQuery.isFunction()
  •  jQuery.isNumeric()
  •  jQuery.isPlainObject()
  •  jQuery.isWindow()
  •  jQuery.isXMLDoc()
  •  jQuery.makeArray()
  •  jQuery.map()
  •  jQuery.merge()
  •  jQuery.noop()
  •  jQuery.now()
  •  jQuery.parseHTML()
  •  jQuery.parseJSON()
  •  jQuery.parseXML()
  •  jQuery.proxy()
  •  jQuery.support()
  •  jQuery.trim()
  •  jQuery.type()
  •  jQuery.unique()
  •  Get css property of element by id
  •  Set multiple properties
  •  Set single property
  •  Get the offset (position of element relative to the page). Returned as an object.
  •  Get the position position of element relative to parent Returned as object.
  •  Get scrollbar Vertical position. Works on any element with scrollbar.
  •  Set scrollbar vertical position
  •  Get scrollbar horizontal position
  •  Set scrollbar horizontal position
  •  Get the current height of element
  •  Set the current height of element
  •  Get the current width of element
  •  Set the current width of element
  •  Get the inner height (height of element incl. padding excl. border) of element
  •  Get the inner width (width of element incl. padding excl. border) of element
  •  Get the outer height (height of element incl. padding and border) of element. if true param passed in also includes margin height
  •  Get the outer width of element (see outer height notes above)
  •  Change single stylesheet
  •  Switch particular stylesheet
  •   Add a stylesheet
  •  Add a class to an element
  •  check element has a particular class
  •  Remove a class from an element
  •  Remove a class if element has it otherwise add the class
  •  Get the ID of element
  •  Set the ID of element
  •  Remove the ID attribute from an element
  •  jQuery fadeTo()
Edit
❮ PreviousNext ❯

.css()

See the Pen JQuery .css() by inimist (@inimistschool)on CodePen.

  • Free Project
  •  Stripe gateway integration demo with PHP

Inimist Technologies is a Web Design & Development company located in Mohali, Chandigarh area. We offer various types of IT services and web consultancy. We majorly work in Web & Mobile App Development, Search Engine Services.

Contact Link

  • Home
  • Services
  • Units Converter
  • Our Products

Contact info

Inimist Technologies

Contact Links