Search code examples
jqueryhtmlcssstylesheet

How to use both jQuery styles and css style sheet?


Is it possible to use both jQuery styles and CSS style sheet?

Currently I have this:

<link rel="stylesheet" 
href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">

I also need to use my cssstylesheet.css as well for custom styling as per the business. How can I achieve this? Does it make sense to add two <link rel> tags? One for jQuery styles and the other for custom css sheet.


Solution

  • Yes, add another one with the href equal to the file path.

    Note that the one added last takes precedent if they're styling the same items.