Jump to content

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)
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.