Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member tha_Gsheep's Avatar
    Join Date
    Feb 2003
    Location
    Scotland
    Posts
    188
    Member #
    780
    Can anyone see why firefox is not reading the stylesheet "screen2.css" on this site? It seems to work fine on internet explorer. I have put both the link and import method and tried them individually but it seems to be oblivious.

    XHTML Page:
    http://www.kingscroftlogistics.co.uk...ro/index2.html

    linked css:
    http://www.kingscroftlogistics.co.uk...ro/screen2.css
    www.appletv.co.uk

  2.  

  3. #2
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    Might be the incorrect syntax on this line that is messing things up for FF.
    Code:
    p, h1, pre {
    {
    margin: 0 0 1em;
    line-height: 140%;
    margin: 0;
    padding: 5px 10px;
    }
    Page works fine in Opera 8 btw.

  4. #3
    Senior Member tha_Gsheep's Avatar
    Join Date
    Feb 2003
    Location
    Scotland
    Posts
    188
    Member #
    780
    Nope, although it was pretty pointless to leave the other margin declaration is shouldn't stop firefow from presenting the page in CSS.
    www.appletv.co.uk

  5. #4
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    It's not the double margin I was pointing out. It's the double { {

  6. #5
    Senior Member tha_Gsheep's Avatar
    Join Date
    Feb 2003
    Location
    Scotland
    Posts
    188
    Member #
    780
    Very well spotted, That was indeed the problem. I'm guessing mozilla just found the the bracket and since it was never closed, did not use the stylesheet. Quite like a protection against an infinite loop in repetition programming. If I find any documentation on it I'll post it here in future. Thanks again Rince.
    www.appletv.co.uk

  7. #6
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    When you validate your html - you should also validate your css. The w3c css validator found the {{


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:46 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com