Jump to content

amazing problem . Cannot start !!


electronish

Recommended Posts

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]
Link to comment
https://forums.phpfreaks.com/topic/34500-amazing-problem-cannot-start/
Share on other sites

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)

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.