Please help me locating the css code so that i can compress it, with a compression tool! I tried to paste the whole code, n it is showing me errors!
We can probably help, if you can elaborate a bit more & show us some link where exactly the problem is. If you are just looking for a CSS Compression tool here is one http://www.cssdrive.com/index.php/main/csscompressor/
Link to the code your using online or upload it to http://paste2.org/new-paste .. use the css code highlighting
CSS compression - at least in terms of before uploading it to the server is generally a waste of time - the average of 1.8 bytes per line of code saved should rarely pass 2k on even the largest of websites - hardly worth the loss of maintainability in the code. ... you'll get much bigger benefits setting up the server for compression, is that what you are asking for? Setting up the server to do it via .htaccess? If so, put this into your .htaccess file. <IfModule mod_deflate.c> <FilesMatch "\.(html|js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> Code (markup): ... and assuming your copy of apache has the gzip module present it should auto-compress javascript, html and css transparently between your server and everybody's browser. (though you have to set up gzip manually for languages like ASP or PHP in their code)
in the css code there has two main parts: a selector, and one or more declarations: <1> Selector is normally the HTML element you want to style like ..... • <h1>This is a heading</h1> • <p>This is a paragraph.</p> <2> Declarations: Each declaration consists of a property and a value. The property is the style attribute you want to change. Each property has a value. CSS declarations always ends with a semicolon, and declaration groups are surrounded by curly brackets: p {color:red;text-align:center} tnx....