2 css file problem

Discussion in 'CSS' started by shonit, Dec 15, 2008.

  1. #1
    here is the problem

    I want to use 2 css style sheets on my page. Because sometime, the element in those 2 style sheets are the same. So I want it to look at the style1.css first, if it is not there, then look at the style2.css.(by doing that, it does not get conflict if they have the same elements)

    Is that possible to do it? if yes, how can I do it?

    thanks
     
    shonit, Dec 15, 2008 IP
  2. PixelRaider

    PixelRaider Banned

    Messages:
    57
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just place two links to the stylesheet in the <head> tag,
    
    <link rel="stylesheet" type="text/css" href="style1.css" />
    <link rel="stylesheet" type="text/css" href="style2.css" />
    
    Code (markup):
     
    PixelRaider, Dec 16, 2008 IP
  3. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ^^ whats the problem?
     
    SiteTalkZone, Dec 16, 2008 IP
  4. sugarland

    sugarland Member

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Are there any problems to put the css in one style sheet?
     
    sugarland, Dec 16, 2008 IP
  5. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The best and most efficient solution would be to clean up your code. Yes it may be a lil bit of a task but in the long run you'll be happy you did it.
     
    007c, Dec 17, 2008 IP