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
https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/
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.
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/
[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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.