473,385 Members | 1,474 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,385 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 1843
"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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.