Nothadoth Posted August 12, 2006 Share Posted August 12, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/ Share on other sites More sharing options...
wildteen88 Posted August 12, 2006 Share Posted August 12, 2006 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 .t1If you have given a tag an id name of t1 you use #t1You cannot use t1 on its own as the browser will try to find a tag called t1, which doesnt exist. Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73721 Share on other sites More sharing options...
Nothadoth Posted August 12, 2006 Author Share Posted August 12, 2006 I changed all the codes in the css sheet to .t1, .t2 etc. and it still wont work. Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73752 Share on other sites More sharing options...
AndyB Posted August 12, 2006 Share Posted August 12, 2006 Post a link to the non-working page, or post relevant parts of your code. Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73759 Share on other sites More sharing options...
Nothadoth Posted August 12, 2006 Author Share Posted August 12, 2006 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 Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73780 Share on other sites More sharing options...
AndyB Posted August 12, 2006 Share Posted August 12, 2006 [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] Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73786 Share on other sites More sharing options...
Nothadoth Posted August 12, 2006 Author Share Posted August 12, 2006 Yeah I didnt understand wilteen's post.Anyway, thank you. It works Quote Link to comment https://forums.phpfreaks.com/topic/17340-help-ie-does-not-support-my-css/#findComment-73808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.