How can I bypass my CSS file?

Discussion in 'CSS' started by numaria, Jun 29, 2006.

  1. #1
    We're implementing a new menu for our web site, and I can't work out how to make it "fit" CSS-wise, as the global CSS file makes the purchased menu script look out of allignment.

    Any ideas on how to fix this without changing the current CSS tags for the rest of the site?


    http://www.numaria.com/test/
     
    numaria, Jun 29, 2006 IP
  2. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Don't reference the global css.css file on that page. You can have more than one css file.

    <link href="http://www.numaria.com/css.css" rel="stylesheet" type="text/css">
     
    mjewel, Jun 29, 2006 IP
  3. numaria

    numaria Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ahhh, the problem is that the new menu will be on every page of our site... [bummer, eh?]
     
    numaria, Jun 29, 2006 IP
  4. groovenectar

    groovenectar Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    A couple things: Two copies of the global stylesheet are being included, so one should be removed.

    Also, look at this section of the global stylesheet:
    ul {
    list-style-image: url(images/sym2_orange.jpg);
    line-height:16px;
    }

    That's what is causing some of this... One thing you can do is wrap whatever elements you want to use that style in their own <div> with its own id, and then change it to:
    ul#newid {
    list-style-image: url(images/sym2_orange.jpg);
    line-height:16px;
    }

    That way it won't apply to your menu. That's a start anyway...
     
    groovenectar, Jun 29, 2006 IP
  5. numaria

    numaria Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks groovenectar, I'll try and remove it on the global css and will let you know...
     
    numaria, Jun 30, 2006 IP
  6. numaria

    numaria Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi groovenectar,

    For now, I deleted the "ul" reference from the CSS sheet, but the funnny placement still occours. Do you think that there is maybe another tag instead that we've been overseeing?
     
    numaria, Jun 30, 2006 IP
  7. numaria

    numaria Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    getting rid of "li" too made the difference. Now I just have to experiment with DIVs for those two tags.
     
    numaria, Jun 30, 2006 IP