Stylesheets and Firefox!

Discussion in 'Software Q&A' started by Jatin_T, Dec 25, 2004.

Thread Status:
Not open for further replies.
  1. Jatin_T

    Jatin_T New Member

    Joined:
    Aug 6, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Behind u with a knife-hehe-Mumbai!!
    :x
    i cant seem to get an external stylesheet to work with firefox,altho the ocde works for IE!!
    Here is the coding i used..for testing
    style1.css:

    <STYLE type="text/css">
    <!--
    .check{font-family: Comic Sans MS; font-style: bold; font-size: 20px; position: absolute; top: 100; left: 300; color: red; z-index: 20}

    -->
    </STYLE>

    test.html:

    <html>
    <head>

    </head>

    <body>
    <link rel="stylesheet" href="style1.css" type="text/css">
    <div class=check>
    Hello,just checking the style sheet
    </div>


    </body>
    </html>

    Any ideas?
    the stylesheet works if i put it in the head tags!!
     
  2. OP
    OP
    Jatin_T

    Jatin_T New Member

    Joined:
    Aug 6, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Behind u with a knife-hehe-Mumbai!!
    :?
    Doesnt anyone have any idea ab this..many of u have ur own websites....how do u make them compatible wiht firefox??
    Or is this question too dumb!!
     
  3. freshseasons

    freshseasons King of my own Castle

    Joined:
    May 7, 2004
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    EVERYWHERE
    Hey jatin so sorry for the late answer ..never noticed your post :)

    Listen first rule in the external stylesheets gets systematically ignored. For instance the following simple stylesheet willnot work properly in Firefox
    Don't know but firefix simply ignores the first rule. But you can overcome this by just by faking set of rules in front of it!
    Like this
    Atleast this will get it done ....Please ask if you have any more problems.
     
  4. KHUBBU

    KHUBBU New Member

    Joined:
    Jan 31, 2004
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    0
    One question:
    Is there some problem with opening pdf files in firefox. On ie it opens in few seconds but in firefox sometimes it hangs and takes more time. It also aks to
    open multiple pdfs in different windows.
     
  5. OP
    OP
    Jatin_T

    Jatin_T New Member

    Joined:
    Aug 6, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Behind u with a knife-hehe-Mumbai!!
Thread Status:
Not open for further replies.

Share This Page