Welcome to WebmasterWorld Guest from 54.227.101.214

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to hide css online?

     

harish_s

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

5+ Year Member



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...

asquithea

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

10+ Year Member



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.

penders

1:32 pm on Aug 26, 2006 (gmt 0)

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month