473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1845
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: andy johnson | last post by:
Hi All, I called an external stylesheet main.css, created the html files and checked them locally OK. I uploaded everything to the server. When I checked it, the connection kept crashing. I...
1
by: Jocab | last post by:
Just had a look at the Wired.com site and it seems it's completely in XHTML and CSS. I don't understand this snippet of code on their homepage, though: <link rel="stylesheet" type="text/css"...
145
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in...
36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
30
by: Diane Wilson | last post by:
I'm trying (once again) to figure out how to make a robust CSS layout style that can replace tables. I'd like to be able to do a basic two-column layout, with a one-column header, a two column...
3
by: nick | last post by:
I have the following code in my master page: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
4
by: Mikaël PLOUHINEC | last post by:
Hello, I have created a master page with a css. How can I use css in the children pages? The css must be declared in the <head</headsection. Does I have to import all my css in my master? Is...
1
by: shapper | last post by:
Hello, I created a theme folder where I place my Skin and CSS files. I have 5 files: Base.skin, Base.css, Default.css, Contacts.css, Print.css Base Skin and CSS files should be used on...
1
by: fpimentel | last post by:
I have the following CSS: h1 { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold; margin:0; padding:0; }
1
by: matz2k | last post by:
I've got a big problem with the CSS layout which I've produced with Photoshop/Dreamweaver especially for my ebay auctions. This is what it looks like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.