By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,677 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,677 IT Pros & Developers. It's quick & easy.

css-file doen't work!

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
"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

P: n/a
"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

P: n/a
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

P: n/a
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.