Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to hide css online?

12:10 pm on Aug 26, 2006 (gmt 0)

New User

10+ Year Member

joined:May 30, 2006
votes: 0

Hi folks,
I want to hide my css file or css online. That no one should view my stylesheet in all the browser. Any ideas...
12:17 pm on Aug 26, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Nov 18, 2003
votes: 0

That's impossible. If a browser can use the CSS file to render a page, then the content has already been downloaded to the user's computer for them to view and analyze at leisure.
1:32 pm on Aug 26, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
votes: 0

At best you could perhaps use a tool to compress the CSS file and get rid of any unnecessary white-space and comments, but it will certainly still be accessible. And I think most people would advise against trying to hide the CSS (and HTML), since it's a great way for people to learn - by looking at other peoples code.