468,238 Members | 1,712 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,238 developers. It's quick & easy.

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.
Jul 20 '05 #1
4 1733
"Christian-Josef Schrattenthaler" <No****@Thank.You> wrote:
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.
mt is the selector for the mt element (which doesn't exist in HTML).
So how exactly are you using mt in your HTML?
I'm not so good in CSS-Programming, but this should work! If I use the same
definations as "style=..." it works fine.


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
"Christian-Josef Schrattenthaler" <No****@Thank.You> wrote:
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.
mt is the selector for the mt element (which doesn't exist in HTML).
So how exactly are you using mt in your HTML?
I'm not so good in CSS-Programming, but this should work! If I use the same
definations as "style=..." it works fine.


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
On Tue, 13 Apr 2004 15:39:39 +0200, Christian-Josef Schrattenthaler
<No****@Thank.You> wrote:
Hi!

I have the follwing problem:

1.) I have a *.css file, where I defined some styles.
Where is it?
2.) In the HTML-File the a:hover, body, table and so on works fine.
Where is this HTML file?
3.) But I also defined (example): mt {font-size:24px}, and if I use this
"mt" in my HTML-File nothing happens.
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.
I'm not so good in CSS-Programming,
CSS is not a programming language.
but this should work! If I use the same
definations as "style=..." it works fine.

Can anyone give me a hint?

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...)
Jul 20 '05 #4
On Tue, 13 Apr 2004 15:39:39 +0200, Christian-Josef Schrattenthaler
<No****@Thank.You> wrote:
Hi!

I have the follwing problem:

1.) I have a *.css file, where I defined some styles.
Where is it?
2.) In the HTML-File the a:hover, body, table and so on works fine.
Where is this HTML file?
3.) But I also defined (example): mt {font-size:24px}, and if I use this
"mt" in my HTML-File nothing happens.
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.
I'm not so good in CSS-Programming,
CSS is not a programming language.
but this should work! If I use the same
definations as "style=..." it works fine.

Can anyone give me a hint?

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...)
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by andy johnson | last post: by
1 post views Thread by Jocab | last post: by
145 posts views Thread by Mark Johnson | last post: by
36 posts views Thread by Peter Brause | last post: by
30 posts views Thread by Diane Wilson | last post: by
3 posts views Thread by nick | last post: by
4 posts views Thread by MikaŽl PLOUHINEC | last post: by
1 post views Thread by shapper | last post: by
1 post views Thread by fpimentel | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.