Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
How to hide css online? harish_s msg:3061242 12:10 pm on Aug 26, 2006 (gmt 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...
asquithea msg:3061247 12:17 pm on Aug 26, 2006 (gmt 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. penders msg:3061291 1:32 pm on Aug 26, 2006 (gmt 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.