body selector not registering in ff

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Merlin Fradley

    body selector not registering in ff

    I am re doing a friends site using css, and have a problem with the
    formating applied to the body not registering in firefox. It works fine
    in IE and Opera, the only other browsers I've tried it in.
    Page in question is here:



    Any help greatly appreciated.

    PS The original, done before I even knew what a tag was, is at



    You can see why I'm re doing it!

    --

    Merlin
  • Steve Pugh

    #2
    Re: body selector not registering in ff

    Merlin Fradley <merlin.fradley @btinternet.com > wrote:
    [color=blue]
    >I am re doing a friends site using css, and have a problem with the
    >formating applied to the body not registering in firefox. It works fine
    >in IE and Opera, the only other browsers I've tried it in.
    >Page in question is here:
    >
    >http://www.stgeorgearmoury.co.uk/dev/index.html
    >
    >Any help greatly appreciated.[/color]

    You have HTML in your CSS file. Take out the <style> tags and the HTML
    comments. Comments in CSS are of the form /* comment */

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • Jan Roland Eriksson

      #3
      Re: body selector not registering in ff

      On Fri, 04 Feb 2005 08:42:26 +0000, Merlin Fradley
      <merlin.fradley @btinternet.com > wrote:
      [color=blue]
      >I am re doing a friends site using css, and have a problem with the
      >formating applied to the body not registering in firefox. It works fine
      >in IE and Opera, the only other browsers I've tried it in.
      >Page in question is here:
      >
      >http://www.stgeorgearmoury.co.uk/dev/index.html
      >
      >Any help greatly appreciated.
      >
      >PS The original, done before I even knew what a tag was, is at
      >
      >http://www.stgeorgearmoury.co.uk/index.html
      >
      >You can see why I'm re doing it![/color]

      Lose this following '->' marked stuff from your style sheet...

      -> <style>
      -> <!--

      -> <!-- [...] -->
      -> <!-- [...] -->

      [all your CSS is here]

      -> -->
      -> </style>

      ....i.e. don't use (X)HTML markup constructs inside a style sheet file.

      Comments inside CSS is through /* ... */ constructs only, and they
      don't nest.


      Comment

      • Merlin Fradley

        #4
        Re: body selector not registering in ff

        Steve Pugh wrote:[color=blue]
        > Merlin Fradley <merlin.fradley @btinternet.com > wrote:
        >
        >[color=green]
        >>I am re doing a friends site using css, and have a problem with the
        >>formating applied to the body not registering in firefox. It works fine
        >>in IE and Opera, the only other browsers I've tried it in.
        >>Page in question is here:
        >>
        >>http://www.stgeorgearmoury.co.uk/dev/index.html
        >>
        >>Any help greatly appreciated.[/color]
        >
        >
        > You have HTML in your CSS file. Take out the <style> tags and the HTML
        > comments. Comments in CSS are of the form /* comment */
        >
        > Steve
        >[/color]
        Hey! It works! The HTML was put in by the authoring program I use
        (Matrix Y2K) which I am generally happy with, and I had assumed it was
        trying to make sure browsers never tried to display the css itself. I
        left it in just because it was easier than deleting it I guess. Lazy! If
        you look, you will find my /* comments */ are in the right format, but
        thanks for the tip, and thanks for the solution! I was going to try a
        div enclosing everything in the body, but that seemed a little silly.
        Thanks again!

        --

        Merlin

        Comment

        • Merlin Fradley

          #5
          Re: body selector not registering in ff

          >"My theories appal you, my heresies outrage you,[color=blue]
          > I never answer letters and you don't like my tie." - The Doctor[/color]

          PS Nice sig!


          --

          Merlin

          Comment

          Working...