Jump to content

Help. IE does not support my CSS


Nothadoth

Recommended Posts

If you view my page in Firefox you will see im running CSS to control the fonts. However, in Internet Explorer they come through as default.

Can someone help me?

This is my style sheet code.

[code]<style type="text/css">

t1 {
  color: #FFFFFF;
  font-family: Century Gothic;
  font-size: 10pt;
  font-style: normal;
  letter-spacing: 3px
}

t2 {
  color: #000000;
  font-family: Tahoma;
  font-size: 10pt;
  font-style: normal
}

t3 {
  color: #000000;
  font-family: Tahoma;
  font-size: 16pt;
  font-style: normal;
  letter-spacing: 1px;
}

l1 {
  color: #000000;
  font-family: Tahoma;
  font-size: 10pt;
  font-style: underline
}


</style>[/code]

Thanks
Link to comment
Share on other sites

is t1, t2, t3 etc supposed to be .t1, ,t2, .t3 etc As there are no HTML tags that are <t1> <t2> <t3> etc.

If you have given a tag a class name of t1 you use .t1
If you have given a tag an id name of t1 you use #t1

You cannot use t1 on its own as the browser will try to find a tag called t1, which doesnt exist.
Link to comment
Share on other sites

ok. the style sheet im using is in the first post. then I am connecting to the style sheet with:

[code]require_once("styles/connectivity.css");[/code]

Then I have got the text as this:

[code]print "<t1>LATEST PHONE</t1>";[/code]

It works in Firefox just not Internet explorer.

Here is the page: http://www.finalfantasyfan.net/igbltd/
Link to comment
Share on other sites

[quote author=Nothadoth link=topic=103992.msg414649#msg414649 date=1155407396]
ok. the style sheet im using is in the first post. then I am connecting to the style sheet with:
[code]print "<t1>LATEST PHONE</t1>";[/code][/quote]

See wildteen88's post - there is [b]no such thing as a t1 tag[/b] in the HTML specification.

What will work is if you re-code your CSS to change t1, t2, t3 to .t1,.t2,.t3 and then use them like this:

[code]yadda yadda <span class="t1">wow</span> etc[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.