css-file doen't work!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian-Josef Schrattenthaler

    css-file doen't work!

    Hi!

    I have the follwing problem:

    1.) I have a *.css file, where I defined some styles.

    2.) In the HTML-File the a:hover, body, table and so on works fine.

    3.) But I also defined (example): mt {font-size:24px}, and if I use this
    "mt" in my HTML-File nothing happens.

    I'm not so good in CSS-Programming, but this should work! If I use the same
    definations as "style=..." it works fine.

    Can anyone give me a hint?

    Greetings and thanks,
    Christian.


  • Steve Pugh

    #2
    Re: css-file doen't work!

    "Christian-Josef Schrattenthaler " <NoSpam@Thank.Y ou> wrote:
    [color=blue]
    >I have the follwing problem:
    >
    >1.) I have a *.css file, where I defined some styles.
    >
    >2.) In the HTML-File the a:hover, body, table and so on works fine.
    >
    >3.) But I also defined (example): mt {font-size:24px}, and if I use this
    >"mt" in my HTML-File nothing happens.[/color]

    mt is the selector for the mt element (which doesn't exist in HTML).
    So how exactly are you using mt in your HTML?
    [color=blue]
    >I'm not so good in CSS-Programming, but this should work! If I use the same
    >definations as "style=..." it works fine.[/color]

    What's the URL?
    Have you validated your HTML and CSS?

    Stev

    --
    "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

    • Steve Pugh

      #3
      Re: css-file doen't work!

      "Christian-Josef Schrattenthaler " <NoSpam@Thank.Y ou> wrote:
      [color=blue]
      >I have the follwing problem:
      >
      >1.) I have a *.css file, where I defined some styles.
      >
      >2.) In the HTML-File the a:hover, body, table and so on works fine.
      >
      >3.) But I also defined (example): mt {font-size:24px}, and if I use this
      >"mt" in my HTML-File nothing happens.[/color]

      mt is the selector for the mt element (which doesn't exist in HTML).
      So how exactly are you using mt in your HTML?
      [color=blue]
      >I'm not so good in CSS-Programming, but this should work! If I use the same
      >definations as "style=..." it works fine.[/color]

      What's the URL?
      Have you validated your HTML and CSS?

      Stev

      --
      "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

      • Neal

        #4
        Re: css-file doen't work!

        On Tue, 13 Apr 2004 15:39:39 +0200, Christian-Josef Schrattenthaler
        <NoSpam@Thank.Y ou> wrote:
        [color=blue]
        > Hi!
        >
        > I have the follwing problem:
        >
        > 1.) I have a *.css file, where I defined some styles.[/color]

        Where is it?
        [color=blue]
        > 2.) In the HTML-File the a:hover, body, table and so on works fine.[/color]

        Where is this HTML file?
        [color=blue]
        > 3.) But I also defined (example): mt {font-size:24px}, and if I use this
        > "mt" in my HTML-File nothing happens.[/color]

        mt - never heard of this element. Probably you want .mt or #mt but I
        cannot say based on no idea what you're doing.

        And as you're setting font-size in pizels for screen, you might not know
        yourself.
        [color=blue]
        > I'm not so good in CSS-Programming,[/color]

        CSS is not a programming language.
        [color=blue]
        > but this should work! If I use the same
        > definations as "style=..." it works fine.
        >
        > Can anyone give me a hint?[/color]


        I'll give you three.

        1) Post a URL.
        2) Don't set font-size in px.
        3) When you reply to me, put your bit UNDER the bit of mine you're
        replying to. (You haven't made this error yet. But I kinda anticipate
        it...)

        Comment

        • Neal

          #5
          Re: css-file doen't work!

          On Tue, 13 Apr 2004 15:39:39 +0200, Christian-Josef Schrattenthaler
          <NoSpam@Thank.Y ou> wrote:
          [color=blue]
          > Hi!
          >
          > I have the follwing problem:
          >
          > 1.) I have a *.css file, where I defined some styles.[/color]

          Where is it?
          [color=blue]
          > 2.) In the HTML-File the a:hover, body, table and so on works fine.[/color]

          Where is this HTML file?
          [color=blue]
          > 3.) But I also defined (example): mt {font-size:24px}, and if I use this
          > "mt" in my HTML-File nothing happens.[/color]

          mt - never heard of this element. Probably you want .mt or #mt but I
          cannot say based on no idea what you're doing.

          And as you're setting font-size in pizels for screen, you might not know
          yourself.
          [color=blue]
          > I'm not so good in CSS-Programming,[/color]

          CSS is not a programming language.
          [color=blue]
          > but this should work! If I use the same
          > definations as "style=..." it works fine.
          >
          > Can anyone give me a hint?[/color]


          I'll give you three.

          1) Post a URL.
          2) Don't set font-size in px.
          3) When you reply to me, put your bit UNDER the bit of mine you're
          replying to. (You haven't made this error yet. But I kinda anticipate
          it...)

          Comment

          Working...