Jump to content

Archived

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

Nothadoth

Help. IE does not support my CSS

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Post a link to the non-working page, or post relevant parts of your code.

Share this post


Link to post
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/

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

×

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.