Jump to content


Photo

Help. IE does not support my CSS


  • Please log in to reply
6 replies to this topic

#1 Nothadoth

Nothadoth
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 12 August 2006 - 03:53 PM

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.

<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>

Thanks

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 12 August 2006 - 04:03 PM

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.

#3 Nothadoth

Nothadoth
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 12 August 2006 - 05:36 PM

I changed all the codes in the css sheet to .t1, .t2 etc. and it still wont work.

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 August 2006 - 06:06 PM

Post a link to the non-working page, or post relevant parts of your code.
Legend has it that reading the manual never killed anyone.
My site

#5 Nothadoth

Nothadoth
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 12 August 2006 - 06:29 PM

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

require_once("styles/connectivity.css");

Then I have got the text as this:

print "<t1>LATEST PHONE</t1>";

It works in Firefox just not Internet explorer.

Here is the page: http://www.finalfantasyfan.net/igbltd/

#6 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 August 2006 - 06:38 PM

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

print "<t1>LATEST PHONE</t1>";


See wildteen88's post - there is no such thing as a t1 tag 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:

yadda yadda <span class="t1">wow</span> etc

Legend has it that reading the manual never killed anyone.
My site

#7 Nothadoth

Nothadoth
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts

Posted 12 August 2006 - 07:17 PM

Yeah I didnt understand wilteen's post.

Anyway, thank you. It works




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users