Using multiple stylesheets in 1 page??

Discussion in 'CSS' started by lokielookies, Aug 10, 2008.

  1. #1
    My page calls a main stylesheet. For part of the page, I'd like to use a different ss. Is this possible?

    ;)
     
    lokielookies, Aug 10, 2008 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, just list them like this:
    
    <link rel="stylesheet" type="text/css" href="stylesheet1.css" />
    <link rel="stylesheet" type="text/css" href="stylesheet2.css" />
    <link rel="stylesheet" type="text/css" href="stylesheet3.css" />
    Code (markup):
    Check there are no selectors with the same name because the last one loaded will be used.
     
    Cash Nebula, Aug 10, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No reason to have more than a single stylesheet per website, let alone page (exceptions, print, handheld, other media-selected stylesheets).
     
    Stomme poes, Aug 11, 2008 IP
  4. SibTiger33

    SibTiger33 Peon

    Messages:
    203
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    correct


    just use the same stylesheet


    and maybe put some comments in the style sheet so you know what the rules are doing i.e


    /** All Rules below this line are for the second part of the index page *///
     
    SibTiger33, Aug 11, 2008 IP