Forum Moderators: phranque
I'd like to hide my css file (Why? Long story…).
When you've got an asp app, you can put your mdb file outside the root, just so it's "untouchable" for outsiders. (f.x. c:\clients\yourdomain.com\db\mydatabase.mdb)
Is it possible to put the css file outside the root as well? If yes, how do I call it from the html page? (doesn't work with c:\clients\yourdomain.com\css\mystyle.css)
If not, can I put a js file outside the root? If yes, can I convert the css file to a js file? And how do I do to get the css to work on the html page when using a js file?
Or, if I refrase the question; Is it possible in any way to get a html page to use external css without the css code is avalible to wiev for the visitor?
/Bosse
Is it possible in any way to get a html page to use external css without the css code is avalible to wiev for the visitor?
Anyone with half a brain can usually get past these blocks and any web designer with half a brain can usually recreate your CSS just by looking at the page.
What I am trying to say is that it simply isn't worth the bother.
<edit> welcome to webmasterworld btw! [webmasterworld.com...]
In contrast, the browser does process CSS files. When it creates a layout, it matches the HTML input against the styles defined in the CSS, so it requires both. The same is true of external Javascript files; the browser itself typically processes Javascript, rather than the server.