hi jethro, look at these file : http://mamalala.de/mamalala.css and http://mamalala.de/index.html to see how css can be used (though not the best example ;-) it _may_ be possible that somehow apache has no mime-type set for .css files, but that shouldnt be case in a default install .... normally, css has nothing to do with the webserver, its a pure client-side thing .... greets, chris Am Freitag, 1. Februar 2002 05:01 schrieb Jethro Cramp:
I'm learning to use CSS with html (anything to try and make an ugly webpage look better) and I can't get it to work. At this stage I'm not sure if it's a problem with apache (which I know next to nothing about) or my html/css. I'm running vanilla apache as it came with SuSE 7.3. (Apache 1.3.20)
I have the following files in /home/jsc/html_public/chinees-blauw/ index.html chinees-blauw.css
The css file reads:
.test { background:black )
The html file reads:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> <title>Chinees Blauw</title> <link title="cb_main" rel="stylesheet" href="chinees-blauw.css" type="text/css"></link>
</head> <body> <table height="100" width="100%" align="center" class="test"> <tr> <td>Hello</td> </tr> </table> </body> </html>
I am expecting to not be able to read the word 'Hello' as if the style sheet works then it should be black text on black background.
I am accessing the page through http;//localhost/~jsc/chinees-blauw/index.html and of course I can see the text. I have tried all sorts of different combinations of relative and absolute paths for the link to the stylesheet. I have checked the style by substituting the <link ...> tag with the <STYLE> definition and it works.
So my question is do I have to tweak apache to get css to work or am I doing something else wrong?
TIA,
Jethro
-- visit me: http://mamalala.de - jmax audio related http://video.mamalala.de - jmax video related irc.openprojects.net - channel #jmax