electronish Posted January 17, 2007 Share Posted January 17, 2007 Amazing problem I am facing .. Cannot work with css ? ? I have worked with PhP and now CSS is giving problems ? strange for me .. SOmethign i am doing wrong .. but dunno why .. this is my .htm document [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>hey</title><style TYPE="text/css"> @import url("E:\LEARNCSS\style.css") </style></head><body><h1> here too</h1><h1>this headline is bluer and 16 pt.</h1></body></html>[/code]tried this also [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>hey</title><link rel="stylesheet" type="text/css" href="E:\LEARNCSS\style.css"> </style></head><body><h1> here too</h1><h1>this headline is bluer and 16 pt.</h1></body></html>[/code]and this is the css document [code]h1 { font-size:16pt; color:blue;} [/code] Quote Link to comment https://forums.phpfreaks.com/topic/34500-amazing-problem-cannot-start/ Share on other sites More sharing options...
ToonMariner Posted January 17, 2007 Share Posted January 17, 2007 Really?Well that is the most frustrating problem in the world! - having a problem but not knowing how to put the problem in to words....Waht EXACTLY is not working as you expect? Quote Link to comment https://forums.phpfreaks.com/topic/34500-amazing-problem-cannot-start/#findComment-162739 Share on other sites More sharing options...
jcombs_31 Posted January 17, 2007 Share Posted January 17, 2007 Without actually telling us the problem, I quickly was able to find out what is wrong. Look at your path to the css file. You are using a windows path (ie e:\\pathtofile). You need to use the relative path to your document root. (eg /css/stylesheet.css) Quote Link to comment https://forums.phpfreaks.com/topic/34500-amazing-problem-cannot-start/#findComment-162950 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.