Styles play a big part in the look and feel of any website, and jQuery can help us change them dynamically. In this section, we will look at how jQuery can be used to dynamically add and remove style classes and entire cascading style sheets.
To change the layout of the web page we can use multiple style sheets. The following jquery code allows the user to change the view of the current page.
ID’s and Classes are “hooks” We need ways to describe content in an HTML/XHTML document. The basic elements like <h1>, <p> and <ul> will often do the job, but our basic set of tags doesn’t cover every possible type of page element or layout choice. For this we need ID’s and Classes. For example <ul… Continue reading The Difference Between ID and Class
Instead of using full color code like this: #FFFFFF, #113344, #AABBCC, #FF0000 We can do it like this #FFF, #134, #ABC, #F00 However, we won’t able to change anything like this: #C4C4C4, #1A2B3C