Results 1 to 4 of 4

Thread: what order would the browser use for style sheets

  1. #1
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    593
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default what order would the browser use for style sheets

    For example,a webpage has links to 3 style sheets

    1.css
    2.css
    3.css

    and the there is some listed below on the page like:

    <style type="text/css">
    blah
    blah
    blah
    </style>

    I have a page that was mish mashed together and has css from 4 sources and some of it has different styles for the same thing-like body on one page is one color/size and is different on another.

    Please help me-I don't have much hair left and I hope to keep it f or a while longer.lol
    Thanks,

    Bud

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    https://www.google.com/search?q=order+loading+css
    Looks like the first result (and maybe some others) have that information.

    I *think* it's sequential (whichever is encountered in the code first), but I'm not positive about that or if there may be some exceptions.

    The only true exception I know of is !important, which, if placed after a line of CSS, will make that override all other values.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    ajfmrf (03-15-2013)

  4. #3
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    593
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default

    I was wondering what that was about !important...
    Last edited by ajfmrf; 03-15-2013 at 06:42 AM. Reason: color
    Thanks,

    Bud

  5. #4
    Join Date
    Nov 2009
    Posts
    107
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    If I understand correctly you are looking for the order of the cascade? If so this might help (the part on "6.4.3 Calculating a selector's specificity" was useful to me):

    http://www.w3.org/TR/CSS21/cascade.html

    good luck.

Similar Threads

  1. Cycle Through Style Sheets
    By chappy01 in forum JavaScript
    Replies: 1
    Last Post: 12-16-2011, 05:02 AM
  2. two style sheets problem
    By explorers5000 in forum CSS
    Replies: 7
    Last Post: 08-09-2011, 05:55 PM
  3. CSS - Cascading Style Sheets
    By Angel8552 in forum CSS
    Replies: 1
    Last Post: 07-11-2007, 01:04 PM
  4. Help With RSS display box templates/style sheets
    By jndn in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-29-2006, 06:05 AM
  5. Anyone know where to find style sheets?
    By gsibble in forum CSS
    Replies: 0
    Last Post: 06-08-2006, 03:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •