CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 31st, 2004, 03:51 PM
roypython roypython is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 71 roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 h 20 m 49 sec
Reputation Power: 5
Binding external css to a page

Hello.
I appreciate your help very much, (the subject might or might not be
directly replated to python)
Binding external css (the basic CSS1 standard) file to an html doesn't work.
[ It does work if the styles definitions are embedded in the page itself ]
I'm using apache on linux and I tried 2 browsers ( mozilla 1.5-3(debian) and konqueror 3.1.5 )
I'm using the very simple example which doesn't work

#!/usr/bin/python
print 'Content-Type: text/html\n\n'
print '''<html>
<head>
<link href="jazzy.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1> hello </h1>
</body>
</html>
'''

and the css file ( jazzy.css) looks like
h1 {color: yellow;
background: yellow;
}
p {margin-left: 20px}
body {background: red;
color:red
}


Both files are in the same virtual directory and both have full permissions(rw) for everyone.
I Idon't have an idea what the problem is.
Thanks a lot
Roy

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Binding external css to a page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT