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
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
Dear Chris,
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 ....
Thanks. I copied both of these files into the same directory under ~jsc/public_html and then viewed them and the css works. I also checked by removing the css file and then as expected I get the page without the css formatting.. Good. Now I know my use of css sucks but apache is fine :) I guess I should have thought of trying something similar before bothering the list. Jethro
I forgot 'colour' isn't 'colour' but 'color'. Duh!
I have just installed kde3 on my 7.3 system but when I try to log in I get an error message telling me to check if DCOPserver is running. What does this mean?
Well, I got this error because I had my QT and KDE paths pointing to KDE2 and QT2's directories. You might want to take a look at /etc/rc.config and your .bashrc to see what you have specifed. And change all references to KDE2 to KDE3. Also, you should remove the following files. /tmp/<everthing KDE> In your home directory you can do this... rm -rf .DCOP* .MCOP* .mcop* These are left over when you exit from KDE2 everytime and if KDE3 tries to use them it won't be happy. You should also look in your .bashrc to make sure that /opt/kde3/bin is in your path. If you do this and your still having issues shoot off another email and we can go from there. * Mark Hollingsworth (marhol@netspace.net.au) [020414 00:22]: ::I have just installed kde3 on my 7.3 system but when I try to log in I get ::an error message telling me to check if DCOPserver is running. What does ::this mean? :: :: ::-- ::To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com ::For additional commands send e-mail to suse-linux-e-help@suse.com ::Also check the archives at http://lists.suse.com :: -=Ben --=====-----=====-- mailto:ben@whack.org --=====-- "I've never been quarantined. But the more I look around the more I think it might not be a bad thing." -GC --=====-----=====--
participants (4)
-
Ben Rosenberg
-
Christian Klippel
-
Jethro Cramp
-
Mark Hollingsworth