Module 11 Manipulating CSS Using Jquery
Module 11 Manipulating CSS Using Jquery
Starting off with the first topic, Adding and Removing Classes.
A method that toggles between adding or removing classes from the selected elements.
If the specified class exists for the element, it is removed, and if it does not exist, it is
added.
The css method is a jQuery method that can be used to get and set a CSS class property value
which Works similarly to the html method.
As for multiple properties, it can be set using the css method along with JSON syntax for
property-value pairs. Property-value pairs are enclosed in curly braces and separated with
commas.
Dimensions Can be set using a particular group of methods for HTML elements which are the
width and height method, the inner width and inner height method, and the outer width and outer
height method.
The width() and height() methods are used to set element width and height WITHOUT padding,
borders, or margins. While he innerWidth() and innerHeight() methods are used to set element height
including ONLY padding. As for The outerWidth() and outerHeight() methods, it includes the padding
and borders.
Its important to note that Values are static; numerical values are converted to their equivalent
length or width in pixels. With that said, this will be the end of our report, thank you for listening.