<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cosmos Blog - Web Design,Design Resource,Web Hosting,Best Web Hosting,Make money online &#187; Technology</title>
	<atom:link href="http://www.cosmos-blog.com/category/technology/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cosmos-blog.com</link>
	<description>Top Web Hosting of 2011,Design,Resources,icon,wordpress,photoshop,Tutorial,tools,Technology,Make Money,fonts,Wallpapers,hosting,web hosting,flash,template</description>
	<lastBuildDate>Mon, 30 Jan 2012 01:57:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The Tips For Your Design Projects</title>
		<link>http://www.cosmos-blog.com/the-tips-for-your-design-projects</link>
		<comments>http://www.cosmos-blog.com/the-tips-for-your-design-projects#comments</comments>
		<pubDate>Thu, 16 Jun 2011 08:02:25 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Design Projects]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=11312</guid>
		<description><![CDATA[For web designers, having successful client projects leads to happy clients, more referrals, a proven track record, and valuable experience and knowledge that can be used in future projects. But there is a lot that goes into making a project a success, and simply completing the design on time is not enough. In this article [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>For web designers, having successful client projects leads to happy clients, more referrals, a proven track record, and valuable experience and knowledge that can be used in future projects. But there is a lot that goes into making a project a success, and simply completing the <a href="http://www.cosmos-blog.com">design</a> on time is not enough. In this article we&rsquo;ll take a look at 10 things you can do to make your projects more successful.</p>
<h3>1. Focus on the User</h3>
<p>It is the users who will ultimately determine the success of a design or re-design project. While we as designers like to create something that meets our own expectations or fits into what we think is a good website, the site is not for us, it&rsquo;s for the users. If you can keep your focus on the user and work to create the best site possible for them, the project will be successful.</p>
<p>User focus starts with the first point of this article, getting to know and understand them. If you don&rsquo;t take the time up front to get familiar with your client and their users, it&rsquo;s difficult or impossible to create a site that focuses on the users&rsquo; needs.</p>
<h3>2. Know What Actions You Want Visitors to Take</h3>
<p>A successful design project will&nbsp;result in visitors taking some kind of action on the site. Depending on the client and the type of website, that action could be purchasing a product, filling out a contact form, opting in to a newsletter, downloading an informational product, or any number of things.</p>
<p>It&rsquo;s important that you and the client have a clear understanding of&nbsp;what actions from visitors are&nbsp;critical to the success of the website. After you have established which specific actions you want visitors to take, leading visitors to those actions should be a priority throughout the design process. In the end, leading visitors to take the desired action is much more important than having a site that looks great or has a lot of bells and whistles.</p>
<h3>3. Communicate with the Client Throughout the Process</h3>
<p>Communication between designer and client is a critical aspect of the project for several different reasons. First, in order for the project to be successful the client must be happy with it, and that is very difficult to&nbsp;accomplish if you&rsquo;re not doing a good job of communicating with the client from the start.</p>
<p>Second, consistent two-way communication helps to improve efficiency and eliminate time for unnecessary revisions and changes.</p>
<p>Third, good communication will keep the client&nbsp;in the loop&nbsp;with what is being done on the project and they&rsquo;ll feel more comfortable knowing that the project is moving forward. Even when work is being done, if the client isn&rsquo;t hearing anything they will often assume that nothing is being done. Simple communication can avoid this.</p>
<p>The web design process can be rather overwhelming and intimidating for many clients, and good communication helps to put them at ease. Communication is a skill that most designers continually work on throughout their careers. Learn from your experience and always work on ways to improve how you can communicate with your clients.</p>
<h3>4. Truly Get to Know the Client and Their Customers/Visitors</h3>
<p>In order to create a website that maximizes its potential for your client, you&rsquo;ll first have to get a clear understanding of the client, how they do business, how they brand themselves, and you&rsquo;ll also need to become familiar with their target market. Depending on your familiarity with the client and their industry, this may require a considerable amount of time and effort. The better understanding you have, the more likely you will be to create a site that meets the needs of the client and their users.</p>
<p>A common mistake, especially for new designers, is to jump right into the design process without dedicating time to getting familiar with the client. This often leads to a site that may look good on the surface, but doesn&rsquo;t effectively fit the needs and personality of the client.</p>
<p>Different designers have their own methods for getting to know their clients, so do whatever works best for you. Some designers have a standard intake questionare or form that they have clients fill out to get information about their business and their customers. Others meet with clients, discuss&nbsp;and observe. Whatever your process, be sure that you prioritize the need to get to know your clients, and account for this in your estimates and scheduling of projects.</p>
<h3>5. Have a Clear Set of Goals for the Project</h3>
<p>Some clients will want a website just because it is the thing to do, but they don&rsquo;t really know what they specifically hope to get out of having a website. Others will want to re-design their existing site because it is outdated or because they don&rsquo;t like the look anymore, but they may not know exactly what they want to improve about the website. Having goals for the project will help to get a clear determination of what will make the project a success, and it will help to keep the project focused on what is most important.</p>
<p>Take the time to talk to clients about what is most important to them, and together you can establish a few specific goals for the project. It&rsquo;s best to focus on a small number of things rather than having too many goals and getting distracted by things that are not as important. This process will assist you by getting your clients to think and communicate with you about the most important reasons for going through with the project, and it will give you some methods for measuring the project to gauge its success.</p>
<h3>6. Clearly Define the Scope of the Project</h3>
<p>A problem that every designer runs into at some point is failing to set boundaries on the scope of a project. Your idea of what is involved in a website design or re-design may not match up with your client&rsquo;s idea of what should be involved. Disagreements over the scope of the project can lead to clients feeling like they are not getting what they paid for, or you doing more work than you expected when you quoted the project.</p>
<p>The solution to this problem is to have a clearly defined scope from the start, in writing. Be sure that you and the client are in agreement on the scope before starting the project, and get it incorporated into the contract. The details of scope can always be negotiated along with the fees, so there are opportunities to work out differing opinions when trying to secure the work.</p>
<h3>7. Allow Plenty of Time</h3>
<p>Creating an attractive, functional, and effective website takes time. One of the biggest hindrances to the success of a project can be a lack of time. When scheduling your projects be sure that you are allowing enough time to give each project enough attention. Plan some extra time for unexpected challenges or situations that arrive, because things tend to come up.</p>
<p>The amount of time that you&rsquo;ll need to schedule will vary from one project to the next depending on what is involved, so it will take some practice to get it down, but learn from your mistakes and avoid unrealistic expectations.</p>
<p>One challenge that often arises is being held up on a project because you are waiting on information or decisions from the client. When preparing a timeline and setting deadlines for the project, the deadlines should not only apply to you as the designer. Setting deadlines for clients to get you certain information or to do their part is reasonable and will help to keep things moving forward. If the client doesn&rsquo;t live up to their end and meet their deadlines, you&rsquo;ll have a clear example of why the project slowed down if you have trouble meeting a deadline.</p>
<h3>8. Incorporate Feedback Throughout the Process</h3>
<p>We&rsquo;ve already talked about the need for communication and to keep clients happy, and a big part of that is incorporating their feedback into the design. Even though you will have made a strong effort to get to know the client and their customers/visitors, the client will still know their target market better than you will, so their feedback can be extremely valuable. Also, their feedback is critical to wind up with an end product that is an accurate representation of their business.</p>
<p>Web apps like <a href="http://www.proofhq.com/">Proof HQ</a> and <a href="http://www.conceptshare.com/">ConceptShare</a> are great resources for helping to organize the feedback the your design projects. Regardless of your methods for gathering feedback, in order to make the project a success you will need to take that feedback and use your professional judgment and design abilities to incorporate what you are hearing from the client. You&rsquo;ll need to be able to create something that the client is pleased with and that works for the users.</p>
<h3>9. Consider the Future</h3>
<p>Many websites are continually growing and evolving. When designing the site take the future into consideration and try to get a feel for where the client may like to go with the site in the future. The most successful projects will be well structured so that growth and additions don&rsquo;t require a re-design too quickly. As new content or products are added to the site, navigational issues sometimes arise, so try to anticipate the challenges that may occur in the future and structure the site in a way that will allow for this growth.</p>
<p>Considering the future is also important in terms of the&nbsp;design style. Avoid trends that are likely to phase out&nbsp;in the&nbsp;near future that will leave the site looking dated and out of touch. A timeless style of&nbsp;design is more valuable to the client in the long run than a trendy design that must be changed a year later.</p>
<h3>10. Test</h3>
<p>Successful projects must be well tested. Don&rsquo;t rush the testing stage in order to get the site launched quickly, or the visitors are likely to experience unnecessary issues with the site. An effective testing phase can help to ensure smoother launches and a more positive experience for users.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/the-tips-for-your-design-projects/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Have an SEO Friendly Website</title>
		<link>http://www.cosmos-blog.com/hav-an-seo-friendly-website</link>
		<comments>http://www.cosmos-blog.com/hav-an-seo-friendly-website#comments</comments>
		<pubDate>Sun, 15 May 2011 00:08:26 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=11129</guid>
		<description><![CDATA[Nearly every business from local plumbers, large blue-chip organizations and even churches have websites, and each and every one wants to spread the message about their products, services and profiles, and what they can offer you as a consumer. That is where SEO comes in. SEO has become a valuable online marketing tool for businesses [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><div>
<p>Nearly every business from local plumbers, large blue-chip organizations and even churches have websites, and each and every one wants to spread the message about their products, services and profiles, and what they can offer you as a consumer. That is where <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/seo" title="View all posts in SEO" target="_blank">SEO</a></span> comes in. <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/seo" title="View all posts in SEO" target="_blank">SEO</a></span> has become a valuable online marketing tool for businesses of all shapes and sizes, but for an <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/seo" title="View all posts in SEO" target="_blank">SEO</a></span> campaign to be successful, solid foundations need to be in place. Doing things right from the offset can really reap the benefits, save time and money.</p>
<p>&nbsp;</p>
<p>Below are my top tips for designing an SEO friendly website from the ground up. These cover the little things that need to be done (or avoided) from the offset, so a website can eventually live a happy life at the top of the search engines.</p>
<h3>Keyword Research</h3>
<p><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/05/000844DyP.jpg" /></p>
<p>Before I even start a website design/build, I establish what the business objectives are. Many businesses will have a clear plan of what they want to achieve in terms of targeting. This may range from targeting the local area, national area or even global.</p>
<p>With this in mind, when designing wire frames, deciding on customer journeys and sitemaps, you can start to build, in addition, pages for content that target these specific keywords based on your findings, or at least have a plan of where these pages may go down the line once the site has launched.</p>
<p>From a design perspective, there is nothing worse than going back to a website six months later and having to change the structure and internal elements for additional content that may be used for SEO purposes. So my advice would be to plan early.</p>
<h3>Search Engine Friendly Navigation</h3>
<p>Now when I say search engine friendly, I mean a navigational system that the search engines can read and follow. One of the many factors of on-page SEO is the internal linking structure and the navigational system is the backbone for this. Having buttons and links which are text-based is a major plus and great for accessibility.</p>
<p><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/05/000844RCW.jpg" /></p>
<p>In my opinion, I would always avoid flash based navigational systems for one simple reason; Google along with the other search engines can&rsquo;t read text on images. The other thing to consider with this is, as the web moves more and more to mobile devices how many of these will support flash? Apple has already said they won&rsquo;t support flash elements and even my Blackberry doesn&rsquo;t do a great job of flash websites. Please don&rsquo;t think I&rsquo;m not a lover of flash, because I do like the concept, but from an SEO point-of-view it can be a big barrier, especially with navigations.</p>
<p>Instead of flash, why not use CSS methods or jQuery? These can be just as good if not better, but make sure the load times for these elements are fast.</p>
<p>Also with navigational systems, it&rsquo;s important to clearly label the links.&nbsp; If a link says &quot;about&quot;, it should take the user (and the search engines) to the &ldquo;about&rdquo; page. As mentioned above, your internal link structure needs to be good, if not bullet-proof! Another example would be, if you have a page about &quot;restaurants in London&quot;, label any links that go to this page from the navigation or other internal links with the anchor text &quot;restaurants in London&quot;.&nbsp; Make it clear and descriptive for the search engines, thus adding that little extra internal link juice from a SEO perspective.</p>
<h3>Website Load Times</h3>
<p>Every so often a big update is done to the search engine algorithms. Normally the news is about Google and a SEO factor that was introduced early 2010 was website load times/speed. &nbsp;I experimented with this and found by speeding up a site in terms of various elements, did have an affect, so much so that a website I experimented on moved up 3 places in Google.</p>
<p><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/05/0008447r7.jpg" /></p>
<p>Now when I say various elements, I mean things like:</p>
<ul>
<li>CSS files &ndash; remove unwanted/unused code or place all the code on one line per div/class.</li>
<li>The amount of JavaScript in the code &ndash; this can be really slow depending on what you are using it for so I&rsquo;d advise using it sparsely.</li>
<li>Website image size &ndash; see point 4.</li>
<li>File size &ndash; remove white spaces and any unessential line breaks in code, keep it streamlined.</li>
</ul>
<p>Making improvements on the above, will increase speed and generally help with the SEO (not forgetting the user experience).</p>
<h3>Website Images</h3>
<p>As a golden rule, a website has eight seconds to sell the company and/or products and there is nothing worse than waiting for a website to load, especially large images and backgrounds. As mentioned above, website load time is a factor and the two best tools I have used to reduce image file sizes are Adobe <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/photoshop" title="Photoshop">Photoshop</a></span> and Adobe Fireworks &ndash; admittedly Fireworks did the slightly better job, even though it was only a few kilobytes.</p>
<p>Also if the website is an e-commerce site, create smaller images for the galleries.&nbsp; There is nothing worse than waiting for an image to load that is only 200px x 200px on screen that has been re-sized using HTML code &ndash; remember speed is now a key factor with SEO and can&rsquo;t be avoided.</p>
<h3>Keyword Placement</h3>
<p>So, one of the major factors of SEO is telling Google what the page is about. This is done by writing great &ldquo;user-focused&rdquo; content. Within this content it&rsquo;s important to get the keywords in the right position on the page. Here are the best places:</p>
<ul>
<li>Title tag</li>
<li>Meta description and keywords</li>
<li>Website slogans</li>
<li>Navigation</li>
<li>Breadcrumb trails</li>
<li>H1, H2 and H3 tags</li>
<li>Bullet points</li>
<li>Alt text</li>
<li>Title attribute on links</li>
<li>The main website copy</li>
<li>Internal links</li>
<li>Footer links</li>
<li>URL&rsquo;s</li>
<li>File / folder names</li>
</ul>
<p>One thing to remember with the above is, don&rsquo;t over-do it. Google has become heavily focused on the user so make sure the content is focused at the user; it will also become link-worthy content.</p>
<h3>Add Social Elements</h3>
<p><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/05/000844Up1.jpg" /></p>
<p>2011 has had a shift in terms of SEO; social is now a contributing factor. Not only is social a good way to demonstrate to potential customers that the company has a voice but social networks like Twitter helps towards good rankings.</p>
<p>It&rsquo;s crucial with the design of the website that social elements are added in on 2 different levels.</p>
<ol>
<li>Make it clear that the company is available and contactable on social networks with prominent buttons and icons</li>
<li>Adding the Twitter feed on site can also help with keyword placement, regular updates (you must be a daily user of Twitter) and can also speed up the Google cache rate (i.e. the amount of times Google visits the website and checks for updates).</li>
</ol>
<h3>Friendly URL&rsquo;s and image filenames</h3>
<p>One major thing I have noticed over the past few years is the number of websites that don&rsquo;t contain friendly URL&rsquo;s, so an example may be:</p>
<p><em>http://www.websiteshop.com/products/item1?=20193</em></p>
<p>A better example for a friendly URL would be:</p>
<p><em>http://www.websiteshop.com/formula-one/clothing/ferrari-tshirts</em></p>
<p>As you can see from the two examples, the second option has a good selection of keywords, this will help Google and the other search engines identify what the page is about and having keywords in the URLs is a good SEO method for keyword placement, as mentioned above.</p>
<p>In terms of images, also having an appropriate file name is vital. An example would be women that are looking for a wedding dress &ndash; they will more than likely go to Google images to find design ideas. Having an image named &quot;img310.jpg&quot; isn&rsquo;t going to help with the Google image algorithm. So a better idea would be to have a file name &quot;wedding-dress.jpg&quot; for example.</p>
<h3>Sitemaps</h3>
<p>Sitemaps are purely designed to tell the search engines about all of the content on the website. This will ensure that the search engine bots find all of the content that may be 2 or 3 folders deep within the website so this content has a good shot at ranking for specific keywords and phrases.</p>
<p>One thing I have noticed with large e-commerce websites without sitemaps is the lack of pages that are indexed in Google. A great example would be an e-commerce site I worked on recently that had a catalogue of over 2,000 products. After conducting research on this, I found that only 500 pages had been indexed in Google. With the introduction of sitemaps, their indexed pages had gone up to 1,500 in 3 weeks &ndash; this also increased their exposure in Google. They then started to gain more long tail keyword searches and overall conversions increased off the back of this.</p>
<p>In terms of sitemaps I always recommend to use 4 different sitemaps:</p>
<ul>
<li>XML</li>
<li>ROR (aka RSS Feed)</li>
<li>URL List</li>
<li>HTML</li>
</ul>
<p>This give the search engines a variety of choice when it comes to locating all of the pages on site. Another thing to mention would be to include links to all 4 sitemaps on every page of the website (usually in the footer) to help the search engines further, especially with buried content which could be 2 or 3 levels (folders) deep.</p>
<h3>Google Web Fonts</h3>
<p><img title="google" height="262" alt="" width="580" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/05/000845ApE.jpg" /></p>
<p>Creating visually interesting designs usually consists of using unfriendly web fonts. Creating text elements with an attractive font normally consists of using images as a work around. As mentioned in this post, Google and the other search engines can&rsquo;t read text which is an image, which in turn could cost you really good real-estate with keyword placement on-page.</p>
<p>Back at the beginning of last year Google opened up a new Font Directory (<a target="_blank" closure_uid_2b5nfl="622" href="http://www.google.com/webfonts">http://www.google.com/webfonts</a>). So instead of using images for text, you now have a large collection of open source fonts to use on the web completely free!</p>
<p>So in a nutshell, you can keep those super attractive designs with a readable web font, which in turn results in the search engines being able to read the text and use this as a ranking factor.</p>
<h3>301 Redirects</h3>
<p>Now I&rsquo;m sure as a designer you have come across the re-design scenario. So, you have finished the design and launched the new website and then all of a sudden, rankings drop!</p>
<p>A great way to combat this, especially if you have restructured the website with new file names or moved content is to use 301 redirects in the .htaccess file.</p>
<p>This does 3 things:</p>
<ol>
<li>Tells the search engines that the page has moved to a new location and needs re-indexing</li>
<li>Tells the search engines the page has been renamed and needs re-indexing</li>
<li>Any links that were pointing to the old page will now flow through to the new page via the redirect. As links are an imperative part of SEO, you can&rsquo;t afford to loose these valuable links, thus retaining good rankings.</li>
</ol>
<h3>Prediction: W3C Validation</h3>
<p>Over the past 18 months I have blogged about validated websites don&rsquo;t have an impact on search results. With Google updates such as &quot;caffeine&quot; and &quot;panda&quot; which focus on search quality and user experience, I believe this may become a factor in the future &ndash; so I believe its important to look at this area sooner rather than later.</p>
<h3>Final note&hellip;</h3>
<p>The above points are certainly a must, but one thing to remember especially with search engine optimisation is that continuous work is required to gain great results.</p>
<p>The above gives you the basics and a fantastic starting block for a successful SEO campaign.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/hav-an-seo-friendly-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>30+ Amazing jQuery Plugins &amp; Tutorials</title>
		<link>http://www.cosmos-blog.com/30-amazing-jquery-plugins-tutorials</link>
		<comments>http://www.cosmos-blog.com/30-amazing-jquery-plugins-tutorials#comments</comments>
		<pubDate>Sun, 30 Jan 2011 11:24:35 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Amazing]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=10094</guid>
		<description><![CDATA[jQuery is slowly becoming ubiquitous in the web development arena all due to its easy to learn, easy to use and easy to extend nature. Here are 30+ fresh and amazing jQuery plugins and tutorials which i have hand-picked from jQuery articles or plugins published in last 30 days on the interwebs. If you are [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>jQuery is slowly becoming ubiquitous in the web development arena all due to its easy to learn, easy to use and easy to extend nature. Here are 30+ fresh and amazing jQuery plugins and tutorials which i have hand-picked from jQuery articles or plugins published in last 30 days on the interwebs. If you are looking for latest on jQuery, then this is a must read for you.</p>
<h3>Tutorials</h3>
<h4>1. <a href="http://hungred.com/2009/08/10/how-to/tutorial-how-to-add-preloader-loading-image-gallery-jquery/" target="_blank" closure_uid_2n18xr="5439">How to add preloader with loading image in a gallery using jQuery</a></h4>
<p><img height="250" alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435Tmn.jpg" width="603" /><br />
Use a jQuery preloader while images are loading in the gallery.<br />
<a href="http://hungred.com/wp-content/demo/jQuery-preloading-with-image/demo.html" target="_blank" closure_uid_2n18xr="5440">&raquo; View Demo</a> | <a href="http://hungred.com/2009/08/10/how-to/tutorial-how-to-add-preloader-loading-image-gallery-jquery/" target="_blank" closure_uid_2n18xr="5441">&raquo; View Tutorial</a></p>
<h4>2. <a href="http://www.queness.com/post/530/simple-lava-lamp-menu-tutorial-with-jquery" target="_blank" closure_uid_2n18xr="5442">Simple Lava Lamp Menu Tutorial With jQuery</a></h4>
<p><img height="71" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435HWw.jpg" width="559" alt="" /><br />
Create a unique lava lamp animated jQuery navigation menu<br />
<a href="http://www.queness.com/resources/html/lava/style.html" target="_blank" closure_uid_2n18xr="5443">&raquo; View Demo</a> | <a href="http://www.queness.com/post/530/simple-lava-lamp-menu-tutorial-with-jquery" target="_blank" closure_uid_2n18xr="5444">&raquo; View Tutorial</a></p>
<h4>3. <a href="http://www.devirtuoso.com/2009/08/how-to-create-a-3d-tag-cloud-in-jquery/" target="_blank" closure_uid_2n18xr="5445">How To Create a 3D Tag Cloud in jQuery</a></h4>
<p><img height="200" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435F3m.jpg" width="203" alt="" /><br />
<span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/amazing" title="View all posts in Amazing" target="_blank">Amazing</a></span> tutorial on creating a flash like 3D tag cloud using jQuery.<br />
<a href="http://www.devirtuoso.com/Examples/3D-jQuery/" target="_blank" closure_uid_2n18xr="5446">&raquo; View Demo</a> | <a href="http://www.devirtuoso.com/2009/08/how-to-create-a-3d-tag-cloud-in-jquery/" target="_blank" closure_uid_2n18xr="5447">&raquo; View Tutorial</a></p>
<h4>4. <a href="http://papermashup.com/drag-drop-with-php-jquery/" target="_blank" closure_uid_2n18xr="5448">Drag &amp; Drop With jQuery</a></h4>
<p closure_uid_2n18xr="5552"><img height="178" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435Sc4.png" width="381" alt="" /><br />
Drag &amp; Drop facility in a web application provides for a rich user interface, learn how to create one using jQuery UI.<br />
<a href="http://papermashup.com/demos/jquery-drag-drop/" target="_blank" closure_uid_2n18xr="5449">&raquo; View Demo</a> | <a href="http://papermashup.com/drag-drop-with-php-jquery/" target="_blank" closure_uid_2n18xr="5450">&raquo; View Tutorial</a></p>
<h4>5. <a href="http://aext.net/2009/08/kwicks-for-jquery-and-an-awesome-horizontal-animated-menu/" target="_blank" closure_uid_2n18xr="5451">Awesome Horizontal Animated menu using Kwicks for jQuery</a></h4>
<p><img height="66" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435euD.png" width="524" alt="" /><br />
Build a customizable and versatile horizontal animated menu using jQuery Kwicks plugin.<br />
<a href="http://aext.net/example/kwicksmenu/" target="_blank" closure_uid_2n18xr="5452">&raquo; View Demo</a> | <a href="http://aext.net/2009/08/kwicks-for-jquery-and-an-awesome-horizontal-animated-menu/" target="_blank" closure_uid_2n18xr="5453">&raquo; View Tutorial</a></p>
<h4>6. <a href="http://www.queness.com/post/484/create-a-thumbnail-gallery-with-slick-heading-and-caption-effect-with-jquery" target="_blank" closure_uid_2n18xr="5454">Create a Thumbnail Gallery With Slick Heading &amp; Caption effect</a></h4>
<p><img height="248" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/1124350S0.jpg" width="364" alt="" /><br />
<a href="http://www.queness.com/resources/html/caption/index.html" target="_blank" closure_uid_2n18xr="5455">&raquo; View Demo</a> | <a href="http://www.queness.com/post/484/create-a-thumbnail-gallery-with-slick-heading-and-caption-effect-with-jquery" target="_blank" closure_uid_2n18xr="5456">&raquo; View Tutorial</a></p>
<h4>7. <a href="http://www.queness.com/post/411/create-an-attractive-jquery-menu-with-fadein-and-fadeout-effect" target="_blank" closure_uid_2n18xr="5457">Create an Attractive jQuery Menu with fade in and out effects</a></h4>
<p><img height="79" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112435Sfy.jpg" width="372" alt="" /><br />
Nice tutorial on creating an attractive jquery menu with fade in background change on hover.<br />
<a href="http://www.queness.com/resources/html/fadein/index.html" target="_blank" closure_uid_2n18xr="5458">&raquo; View Demo</a> | <a href="http://www.queness.com/post/411/create-an-attractive-jquery-menu-with-fadein-and-fadeout-effect" target="_blank" closure_uid_2n18xr="5459">&raquo; View Tutorial</a></p>
<h4>8. <a href="http://papermashup.com/jquery-php-ajax-autosuggest/" target="_blank" closure_uid_2n18xr="5460">jQuery PHP AJAX Autosuggest</a></h4>
<p><img title="jQuery PHP AJAX Autosuggest" height="193" alt="jQuery PHP AJAX Autosuggest" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436tDl.jpg" width="257" /> Autosuggest is one of the useful features of present web applications. Learn how to create one using jQuery and PHP.<br />
<a href="http://papermashup.com/demos/autosuggest/" target="_blank" closure_uid_2n18xr="5461">&raquo; View Demo</a> | <a href="http://papermashup.com/jquery-php-ajax-autosuggest/" target="_blank" closure_uid_2n18xr="5462">&raquo; View Tutorial</a></p>
<h4>9. <a href="http://aext.net/2009/08/perfect-login-dropdown-box-likes-twitter-with-jquery/" target="_blank" closure_uid_2n18xr="5463">Perfect Login Drop Down Box Like Twitter</a></h4>
<p><img height="246" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436vY3.png" width="396" alt="" /><br />
Nice tutorial on imitating the new twitter login dropdown box using jquery.<br />
<a href="http://aext.net/example/twitterlogin/" target="_blank" closure_uid_2n18xr="5464">&raquo; View Demo</a> | <a href="http://aext.net/2009/08/perfect-login-dropdown-box-likes-twitter-with-jquery/" target="_blank" closure_uid_2n18xr="5465">&raquo; View Tutorial</a></p>
<h4>10. <a href="http://buildinternet.com/2009/08/crafting-an-animated-postcard-with-jquery/" target="_blank" closure_uid_2n18xr="5466">Crafting an Animated Postcard With jQuery</a></h4>
<p><img height="262" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/1124366qP.jpg" width="599" alt="" /><br />
Create a flashy postcard using just jQuery and no flash.<br />
<a href="http://buildinternet.com/live/postcard" target="_blank" closure_uid_2n18xr="5467">&raquo; View Demo</a> | <a href="http://buildinternet.com/2009/08/crafting-an-animated-postcard-with-jquery/" target="_blank" closure_uid_2n18xr="5468">&raquo; View Tutorial</a></p>
<h4>11. <a href="http://9lessons.blogspot.com/2009/08/twitter-like-search-with-jquery-ajax.html" target="_blank" closure_uid_2n18xr="5469">Twitter like Search With jQuery &amp; AJAX</a></h4>
<p><img height="151" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436Ns1.png" width="416" alt="" /><br />
Create a twitter like search box that loads results using AJAX on same page.<br />
<a href="http://9lessons.net63.net/newsearch.php" target="_blank" closure_uid_2n18xr="5470">&raquo; View Demo</a> | <a href="http://9lessons.blogspot.com/2009/08/twitter-like-search-with-jquery-ajax.html" target="_blank" closure_uid_2n18xr="5471">&raquo; View Tutorial</a></p>
<h4>12. <a href="http://9lessons.blogspot.com/2009/08/vote-with-jquery-ajax-and-php.html" target="_blank" closure_uid_2n18xr="5472">Voting System With jQuery, AJAX, PHP</a></h4>
<p><img height="97" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436nir.png" width="467" alt="" /><br />
Learn how to create <a href="http://dzone.com/" target="_blank" closure_uid_2n18xr="5473">dzone</a> like voting system.<br />
<a href="http://9lessons.net63.net/voting.php" target="_blank" closure_uid_2n18xr="5474">&raquo; View Demo</a> | <a href="http://9lessons.blogspot.com/2009/08/vote-with-jquery-ajax-and-php.html" target="_blank" closure_uid_2n18xr="5475">&raquo; View Tutorial</a></p>
<h4>13. <a href="http://www.webresourcesdepot.com/ajaxed-sliding-shopping-cart-with-jquery/" target="_blank" closure_uid_2n18xr="5476">AJAXed Sliding Shopping Cart Using jQuery</a></h4>
<p><img height="172" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/1124365I6.png" width="473" alt="" /><br />
<span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/amazing" title="View all posts in Amazing" target="_blank">Amazing</a></span> tutorial on creating a sliding AJAX Shopping basket that slides in and updates the cart when new item is added and auto-hides after some time. It also supports manual show hide option to view shopping cart at any time.<br />
<a href="http://webresourcesdepot.com/wp-content/uploads/file/jbasket/sliding-basket/" target="_blank" closure_uid_2n18xr="5477">&raquo; View Demo</a> | <a href="http://www.webresourcesdepot.com/ajaxed-sliding-shopping-cart-with-jquery/" target="_blank" closure_uid_2n18xr="5478">&raquo; View Tutorial</a></p>
<h4>14. <a href="http://www.devirtuoso.com/2009/07/how-to-build-an-animated-header-in-jquery/" target="_blank" closure_uid_2n18xr="5479">How To Build Animated Header in jQuery</a></h4>
<p><img height="237" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436DXb.jpg" width="553" alt="" /><br />
Add motion to your header by animating its background. <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/amazing" title="View all posts in Amazing" target="_blank">Amazing</a></span> animation tutorial using jQuery.<br />
<a href="http://www.devirtuoso.com/Examples/jQuery-Animated-Header/" target="_blank" closure_uid_2n18xr="5480">&raquo; View Demo</a> | <a href="http://www.devirtuoso.com/2009/07/how-to-build-an-animated-header-in-jquery/" target="_blank" closure_uid_2n18xr="5481">&raquo; View Tutorial</a></p>
<h4>15. <a href="http://9lessons.blogspot.com/2009/07/hide-and-seek-with-jquery.html" target="_blank" closure_uid_2n18xr="5482">Hide and Seek With jQuery</a></h4>
<p><img height="162" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436s5F.png" width="437" alt="" /><br />
Use jQuery to display multiple modules of an application on a single page based on the event occurred.<br />
<a href="http://9lessons.net63.net/hidejquery.html" target="_blank" closure_uid_2n18xr="5483">&raquo; View Demo</a> | <a href="http://9lessons.blogspot.com/2009/07/hide-and-seek-with-jquery.html" target="_blank" closure_uid_2n18xr="5484">&raquo; View Tutorial</a></p>
<h4>16. <a href="http://davidwalsh.name/jquery-comment-preview" target="_blank" closure_uid_2n18xr="5485">jQuery Comment Preview</a></h4>
<p><img height="204" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436DXy.png" width="600" alt="" /><br />
Provide comment preview to your users as they type in their comment using jQuery.<br />
<a href="http://davidwalsh.name/dw-content/jquery-live-preview.php" target="_blank" closure_uid_2n18xr="5486">&raquo; View Demo</a> | <a href="http://davidwalsh.name/jquery-comment-preview" target="_blank" closure_uid_2n18xr="5487">&raquo; View Tutorial</a></p>
<h4>17. <a href="http://www.devirtuoso.com/2009/08/styling-drop-down-boxes-with-jquery/" target="_blank" closure_uid_2n18xr="5488">Styling Drop Down Boxes With jQuery</a></h4>
<p><img height="126" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436pTA.png" width="204" alt="" /><br />
Since select boxes are hard to style using CSS, this tutorial shows you how to replace a select box with a textbox and an unordered list and then style them according to your choice.<br />
<a href="http://www.devirtuoso.com/Examples/Styling-Dropdown/" target="_blank" closure_uid_2n18xr="5489">&raquo; View Demo</a> | <a href="http://www.devirtuoso.com/2009/08/styling-drop-down-boxes-with-jquery/" target="_blank" closure_uid_2n18xr="5490">&raquo; View Tutorial</a></p>
<h4>18. <a href="http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/" target="_blank" closure_uid_2n18xr="5491">Scrolling Dynamic Content Box</a></h4>
<p><img height="254" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436Ij7.png" width="441" alt="" /><br />
Load content into a div on scroll using AJAX just like Google reader loads more items as you scroll down to view more items of a feed.<br />
<a href="http://demo.webdeveloperplus.com/dynamic-scrollbox/" target="_blank" closure_uid_2n18xr="5492">&raquo; View Demo</a> | <a href="http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/" target="_blank" closure_uid_2n18xr="5493">&raquo; View Tutorial</a></p>
<h4>19. <a href="http://hungred.com/2009/08/04/useful-information/ways-debug-jquery-javascript-codes/" target="_blank" closure_uid_2n18xr="5494">Ways To Debug your jQuery or JavaScript Code</a></h4>
<p><img height="171" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112436ZiO.png" width="520" alt="" /><br />
This article explains how you can easily debug javascript code using jquery console logging.<br />
<a href="http://hungred.com/2009/08/04/useful-information/ways-debug-jquery-javascript-codes/" target="_blank" closure_uid_2n18xr="5495">&raquo; View Tutorial</a></p>
<h4>20. <a href="http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/" target="_blank" closure_uid_2n18xr="5496">5 Ways To Make AJAX Calls with jQuery</a></h4>
<p>Nice tutorial from NetTuts+ about different ways of making AJAX calls using jQuery. It is even useful for those who are already familiar with jQuery as in depth coverage of various methods of making AJAX calls has been done.<br />
<a href="http://nettuts.s3.amazonaws.com/412_ajaxCalls/DEMO/index.htm" target="_blank" closure_uid_2n18xr="5497">&raquo; View Demo</a> | <a href="http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/" target="_blank" closure_uid_2n18xr="5498">&raquo; View Tutorial</a></p>
<h3>Plugins</h3>
<h4>1. <a href="http://onehackoranother.com/projects/jquery/tipsy/" target="_blank" closure_uid_2n18xr="5499">Tipsy</a></h4>
<p><img height="66" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/1124362l1.png" width="198" alt="" /><br />
Display Facebook style tooltip plugins based on anchor tag&rsquo;s title attribute<br />
<a href="http://onehackoranother.com/projects/jquery/tipsy/#examples" target="_blank" closure_uid_2n18xr="5500">&raquo; View Demo</a> | <a href="http://onehackoranother.com/projects/jquery/tipsy/" target="_blank" closure_uid_2n18xr="5501">&raquo; Plugin Page</a></p>
<h4>2. <a href="http://www.geckonewmedia.com/blog/2009/8/14/jquery-youtube-playlist-plugin---youtubeplaylist" target="_blank" closure_uid_2n18xr="5502">jQuery YouTube PlayList</a></h4>
<p><img height="279" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437ikF.jpg" width="600" alt="" /><br />
Convert a list of YouTube links into playlist which allows user to see videos right on the page itself.<br />
<a href="http://geckohub.com/jquery/youtubeplaylist/" target="_blank" closure_uid_2n18xr="5503">&raquo; View Demo</a> | <a href="http://www.geckonewmedia.com/blog/2009/8/14/jquery-youtube-playlist-plugin---youtubeplaylist" target="_blank" closure_uid_2n18xr="5504">&raquo; Plugin Page</a></p>
<h4>3. <a href="http://www.electrictoolbox.com/jquery-superfish-menus-plugin/" target="_blank" closure_uid_2n18xr="5505">SuperFish Menus</a></h4>
<p><img height="150" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437uBm.png" width="414" alt="" /><br />
Superfish Menus is an easy to use jquery plugin that converts unordered HTML lists into nice drop down menus.<br />
<a href="http://www.electrictoolbox.com/jquery-superfish-menus-plugin/" target="_blank" closure_uid_2n18xr="5506">&raquo; Plugin Page</a></p>
<h4>4. <a href="http://www.unwrongest.com/projects/elastic/" target="_blank" closure_uid_2n18xr="5507">Elastic</a></h4>
<p><img height="235" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437YRT.png" width="563" alt="" /><br />
Elastic is a lightweight jQuery plugin that makes textareas adjust their size according to the size of content.<br />
<a href="http://www.unwrongest.com/projects/elastic/#demo" target="_blank" closure_uid_2n18xr="5508">&raquo; View Demo</a> | <a href="http://www.unwrongest.com/projects/elastic/" target="_blank" closure_uid_2n18xr="5509">&raquo; Plugin Page</a></p>
<h4>5. <a href="http://azoffdesign.com/plugins/js/overscroll" target="_blank" closure_uid_2n18xr="5510">OverScroll</a></h4>
<p><img height="138" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437gel.png" width="116" alt="" /><br />
Implement iphone like click and drag to scroll behavior on your web page.<br />
<a href="http://azoffdesign.com/plugins/js/overscroll" target="_blank" closure_uid_2n18xr="5511">&raquo; Plugin Page</a></p>
<h4>6. <a href="http://theodin.co.uk/blog/javascript/tweetable-jquery-plugin.html" target="_blank" closure_uid_2n18xr="5512">Tweetable</a></h4>
<p><img height="132" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437Rtz.png" width="389" alt="" /><br />
Display Twitter feed on your website easily and quickly with tweetable. Gives you option to convert twitter usernames and URLs into hyperlinks<br />
<a href="http://theodin.co.uk/tools/tutorials/jqueryTutorial/plugins/tweetable/" target="_blank" closure_uid_2n18xr="5513">&raquo; View Demo</a> | <a href="http://theodin.co.uk/blog/javascript/tweetable-jquery-plugin.html" target="_blank" closure_uid_2n18xr="5514">&raquo; Plugin Page</a></p>
<h4>7. <a href="http://davidwalsh.name/jquery-link-nudge" target="_blank" closure_uid_2n18xr="5515">jQuery Link nudge</a></h4>
<p><img height="132" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437dGY.png" width="254" alt="" /><br />
Make links notorious just like ones on David Walsh blog using this jQuery Link Nudge plugin.<br />
<a href="http://davidwalsh.name/dw-content/jquery-link-nudge-plugin.php" target="_blank" closure_uid_2n18xr="5516">&raquo; View Demo</a> | <a href="http://davidwalsh.name/jquery-link-nudge" target="_blank" closure_uid_2n18xr="5517">&raquo; Plugin Page</a></p>
<h4>8. <a href="http://haineault.com/media/jquery/ui-timepickr/page/" target="_blank" closure_uid_2n18xr="5518">TimePickr</a></h4>
<p><img height="124" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437UVS.png" width="406" alt="" /><br />
If you need to get time as input from user, then use this plugin to provide a rich UI to input time.<br />
<a href="http://haineault.com/media/jquery/ui-timepickr/page/" target="_blank" closure_uid_2n18xr="5519">&raquo; Plugin Page</a></p>
<h4>9. <a href="http://theodin.co.uk/blog/development/truncatable-jquery-plugin.html" target="_blank" closure_uid_2n18xr="5520">Truncatable</a></h4>
<p><img height="92" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437fTU.png" width="328" alt="" /><br />
Truncatable lets you hide blocks of text on page and show them if user requires.<br />
<a href="http://theodin.co.uk/tools/tutorials/jqueryTutorial/plugins/truncatable/" target="_blank" closure_uid_2n18xr="5521">&raquo; View Demo</a> | <a href="http://theodin.co.uk/blog/development/truncatable-jquery-plugin.html" target="_blank" closure_uid_2n18xr="5522">&raquo; Plugin Page</a></p>
<h4>10. <a href="http://plugins.jquery.com/project/AddIncSearch" target="_blank" closure_uid_2n18xr="5523">Incremental Search For Select Boxes</a></h4>
<p><img height="193" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437GPB.png" width="429" alt="" /><br />
This plugin converts ordinary select boxes into combo boxes with incremental search, very useful if you have lots of options in the select box.<br />
<a href="http://oss.oetiker.ch/jquery/jquery.AddIncSearch.html" target="_blank" closure_uid_2n18xr="5524">&raquo; View Demo</a> | <a href="http://plugins.jquery.com/project/AddIncSearch" target="_blank" closure_uid_2n18xr="5525">&raquo; Plugin Page</a></p>
<h4>11. <a href="http://css-tricks.com/anythingslider-jquery-plugin/" target="_blank" closure_uid_2n18xr="5526">Anything Slider</a></h4>
<p><img height="291" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2011/01/112437v6Q.jpg" width="600" alt="" /><br />
Anything Slider is a full featured slider that is pretty easy to customize and adapt into your website.<br />
<a href="http://css-tricks.com/examples/AnythingSlider/" target="_blank" closure_uid_2n18xr="5527">&raquo; View Demo</a> | <a href="http://css-tricks.com/anythingslider-jquery-plugin/" target="_blank" closure_uid_2n18xr="5528">&raquo; Plugin Page</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/30-amazing-jquery-plugins-tutorials/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Write Better CSS Code</title>
		<link>http://www.cosmos-blog.com/how-to-write-better-css-code</link>
		<comments>http://www.cosmos-blog.com/how-to-write-better-css-code#comments</comments>
		<pubDate>Sun, 30 Jan 2011 11:18:09 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Code]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=10092</guid>
		<description><![CDATA[CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code. 1. [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>
<span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> code. Here are few tips that will help you write better and easy to manage <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> code.</p>
<h4>1. Don&rsquo;t Use Global Reset</h4>
<p>Using global reset to remove default margin and padding from all HTML elements is a strict no-no. Not only it is slow and inefficient way but you&rsquo;ll have to define margin and padding for each element that needs it. Instead use subset of CSS Resets like one from <a href="http://meyerweb.com/eric/tools/css/reset/index.html" target="_blank" closure_uid_2n18xr="5384">Eric Meyer</a>.<br />
<strong>Not Good</strong></p>
<pre name="code">*{ margin:0; padding:0; }</pre>
<p><strong>Better</strong></p>
<pre name="code">html, body, div, dl, dt, dd, ul,  h1, h2, h3,  pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
table { border-collapse:collapse; border-spacing:0 }
fieldset, img { border:0 }
ul { list-style:none }</pre>
<h4>2. Do not use IE Hacks</h4>
<p>Though CSS hacks might be useful to maintain consistent look of the website over older browsers like IE6, but they can be problematic for newer versions of IE as newer versions like IE8 do support CSS standards to a good level and using hacks might break out the layout. You should use conditional statements instead to target specific versions of Internet Explorer.<br />
For example, using the below lines of code within your <code>&lt;head&gt;</code> tag will load the iestyles.css file only when browser is Internet Explorer version 6 or less.</p>
<pre name="code">&lt;!--[if lte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/ie-styles.css&quot; /&gt;
&lt;![endif]--&gt;</pre>
<p>For information on conditional comments, refer to the quirksmode article on CSS Conditional Comments</p>
<h4>3. Use Meaningful names for IDs and Classes</h4>
<p>Suppose you define your sidebar styles using class <code>.leftbox</code> and after some redesign, you float it to right, then would it be meaningful to have leftbox as name for right floated box. You should put some thought before declaring classes and IDs for elements so that they are meaningful and easy to understand later.</p>
<h4>4. Utilize CSS Inheritance</h4>
<p>If multiple child elements of a parent element use same styles on your web page, it will be better to define them for their parent element and let the CSS inheritance do all the work. You&rsquo;ll be able to easily update your code later and it&rsquo;ll also reduce the CSS file size considerably.<br />
<strong>Not Good</strong></p>
<pre name="code">#container li{ font-family:Georgia, serif; }
#container p{ font-family:Georgia, serif; }
#container h1{font-family:Georgia, serif; }</pre>
<p><strong>Better</strong></p>
<pre name="code">#container{ font-family:Georgia, serif; }</pre>
<h4>5. Combine multiple Selectors</h4>
<p>You can combine multiple CSS selectors into one if they have common style definitions. It&rsquo;ll save you time and space.</p>
<p><strong>Not Good</strong></p>
<pre name="code">h1{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h2{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }</pre>
<p><strong>Better</strong></p>
<pre name="code">h1, h2, h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }</pre>
<h4>6. Use Shorthand Properties</h4>
<p>Utilize the shorthand properties of CSS to quickly write CSS code and reduce file size. Shorthand notation can be used for <code>margin, padding, border, font, background</code> and also for color values.<br />
<strong>Not Good</strong></p>
<pre name="code">li{
	font-family:Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	line-height: 1.4em;
	padding-top:5px;
	padding-bottom:10px;
	padding-left:5px;
}</pre>
<p><strong>Better</strong></p>
<pre name="code">li{
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	padding:5px 0 10px 5px;
}</pre>
<p>Here&rsquo;s a complete guide to <a href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/" target="_blank" closure_uid_2n18xr="5386">CSS shorthand properties</a>.</p>
<h4>7. Organize CSS <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/code" title="View all posts in Code" target="_blank">Code</a></span></h4>
<p>Organizing your CSS code in a certain pattern will make it easier to find things at later time and save you a lot of time looking for a specific style definition.<br />
Here is a sample organization that you may use:</p>
<pre name="code">/*-------------------------
	CSS Reset
-------------------------*/

/*-------------------------
	Generic Classes
-------------------------*/

/*-------------------------
	Layout styles
-------------------------*/

/*-------------------------
	Section specific styles
-------------------------*/</pre>
<h4>8. Make CSS Readable</h4>
<p>Writing readable CSS will make it easier to find and update a style declaration later. Either group all styles for a selector in one line or each style in its own line with proper indentation. You can also combine these two techniques together.</p>
<pre name="code">/*------------------------
	Each Style on new line
	---------------------*/
div{
	background-color:#3399cc;
	color:#666;
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	height:300px;
	margin:10px 5px;
	padding:5px 0 10px 5px;
	width:30%;
	z-index:10;
}

/*------------------------
	All Styles on one line
	---------------------*/
div{ background-color:#3399cc; color:#666; font: 1.2em/1.4em Arial, Helvetica, sans-serif;  height:300px; margin:10px 5px; padding:5px 0 10px 5px; width:30%; z-index:10; }</pre>
<h4>9. Add proper Comments</h4>
<p>Comments can be used to separate different sections of CSS code</p>
<pre name="code">/*--------------------
	Header
	-----------------*/
#header{ height:145px; position:relative; }
#header h1{ width:324px; margin:45px 0 0 20px; float:left;  height:72px;}

/*--------------------
	Content
	-----------------*/
#content{ background:#fff; width:650px; float:left; min-height:600px; overflow:hidden;}
#content .posts{ overflow:hidden; }
#content .recent{ margin-bottom:20px; border-bottom:1px solid #f3f3f3; position:relative; overflow:hidden; }

/*--------------------
	Footer
	-----------------*/
#footer{ clear:both; padding:50px 5px 0; overflow:hidden;}
#footer h4{ color:#b99d7f; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; }</pre>
<h4>10. Order CSS Properties Alphabetically</h4>
<p>This might be a difficult way to write CSS but it&rsquo;ll make it easier for you to find out any property easily at a later stage.</p>
<pre name="code">div{
	background-color:#3399cc;
	color:	#666;
	font: 	1.2em/1.4em Arial, Helvetica, sans-serif;
	height:	300px;
	margin:	10px 5px;
	padding:5px 0 10px 5px;
	width:	30%;
	z-index:10;
}</pre>
<h4>11. Use External Stylesheets</h4>
<p>It is always a good design practice to separate content from presentation. Place all of your CSS code into external stylesheets and use the <code>&lt;link&gt;</code> to reference stylesheets within a web page. By placing CSS into external files, you can easily update your styles later at one place instead of looking into html templates or files for styles.<br />
<strong>Not Good</strong></p>
<pre name="code">&lt;style type=&quot;text/css&quot; &gt;
	#container{ .. }
	#sidebar{ .. }
&lt;/style&gt;

OR

&lt;li style=&quot;font-family:Arial, helvetica, sans-serif; color:#666; &quot; &gt;</pre>
<p><strong>Better</strong></p>
<pre name="code">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/styles.css&quot; /&gt;</pre>
<h4>12. Split CSS into multiple files</h4>
<p>If you are working on a large web project that has multiple modules, each with different set of styles and looks, it will be better to split your CSS files into multiple files based on the module they are applied to. You can separate stylesheets like, one for reset, one for layout, one for generic classes and one for module specific styles. This technique will let you organize your code easily in a large project but loading multiple CSS files means more HTTP requests and slower loading time, this is where Bridging CSS files come to rescue. Create a separate CSS file and import other CSS files into it.</p>
<pre name="code">@import &quot;style/css/reset.css&quot;;
@import &quot;style/css/typography.css&quot;;
@import &quot;style/css/layout.css&quot;;</pre>
<h4>13. Compress CSS code</h4>
<p>Once you are ready to deploy the web design project, compress your CSS code using tools like CSS Compressor to reduce file size and improve loading time of webpage.</p>
<h4>14. Be Consistent in Writing CSS</h4>
<p>When you work on multiple web development projects, it&rsquo;ll be a wise decision to choose a particular way of organizing and formatting your CSS code and stick to that way for all your projects.</p>
<p>I hope these tips will help you write better and manageable CSS code. If you would like to share a tip or two, feel free to add your comment below.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/how-to-write-better-css-code/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>35 Adobe AIR Tutorials for Web Developers</title>
		<link>http://www.cosmos-blog.com/35-adobe-air-tutorials-for-web-developers</link>
		<comments>http://www.cosmos-blog.com/35-adobe-air-tutorials-for-web-developers#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:05:47 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe AIR]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=5648</guid>
		<description><![CDATA[Adobe AIR gives developers all kinds of possibilities to create applications. As Adobe&#8217;s websites says, &#8220;The Adobe&#174; AIR&#174; runtime lets developers use proven web technologies to build rich Internet applications that run outside the browser on multiple operating systems.&#8221; In this post we&#8217;ll feature 35 tutorials that will help you to learn more about working [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/adobe-air" title="View all posts in Adobe AIR" target="_blank">Adobe AIR</a></span> gives developers all kinds of possibilities to create applications. As Adobe&rsquo;s websites says,<em> &ldquo;</em>The Adobe&reg; AIR&reg; runtime lets developers use proven web technologies to build rich Internet applications that run outside the browser on multiple operating systems.&rdquo;</p>
<p>In this post we&rsquo;ll feature 35 tutorials that will help you to learn more about working with AIR. Some of them are at a beginner level that will introduce you to AIR, and others are more advanced and will teach specifics.</p>
<p><a target="_blank" href="http://net.tutsplus.com/tutorials/tools-and-tips/introduction-to-adobe-air/"><strong>Introduction to <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/adobe-air" title="View all posts in Adobe AIR" target="_blank">Adobe AIR</a></span></strong></a></p>
<p><a target="_blank" href="http://net.tutsplus.com/tutorials/tools-and-tips/introduction-to-adobe-air/"><img height="260" alt="Introduction to Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705489qU.jpg" /></a></p>
<p><a target="_blank" href="http://www.switchonthecode.com/tutorials/adobe-air-and-flex-getting-started"><strong>Adobe AIR and Flex &ndash; Getting Started</strong></a></p>
<p><a target="_blank" href="http://www.switchonthecode.com/tutorials/adobe-air-and-flex-getting-started"><img height="285" alt="Adobe AIR and Flex - Getting Started" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705492Lg.jpg" /></a></p>
<p><a target="_blank" href="http://net.tutsplus.com/tutorials/other/building-an-adobe-air-application-with-flex/"><strong>Building an Adobe AIR Application with Flex</strong></a></p>
<p><a target="_blank" href="http://net.tutsplus.com/tutorials/other/building-an-adobe-air-application-with-flex/"><img class="alignnone" height="200" alt="Building an Adobe AIR Application with Flex" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170549yHj.jpg" /></a></p>
<p><a target="_blank" href="http://arno.org/arnotify/2009/05/writing-well-behaved-efficient-air-applications/"><strong>Writing Well-Behaved, Efficient AIR Applications</strong></a></p>
<p><a target="_blank" href="http://arno.org/arnotify/2009/05/writing-well-behaved-efficient-air-applications/"><img height="498" alt="Writing Well-Behaved, Efficient AIR Applications" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170550XH0.jpg" /></a></p>
<p><a target="_blank" href="http://tv.adobe.com/watch/max-2008-develop/performance-apps-for-air-by-oliver-goldman/"><strong>Performance Apps for AIR</strong></a> (video)</p>
<p><a target="_blank" href="http://tv.adobe.com/watch/max-2008-develop/performance-apps-for-air-by-oliver-goldman/"><img height="307" alt="Performance Apps for AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170551zQb.jpg" /></a></p>
<p><a target="_blank" href="http://24ways.org/2007/christmas-is-in-the-air"><strong>Christmas is in the Air</strong></a> (building a to-do list app)</p>
<p><a target="_blank" href="http://24ways.org/2007/christmas-is-in-the-air"><img height="317" alt="Christmas is in the Air" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170552vGo.jpg" /></a></p>
<p><a target="_blank" href="http://www.thetechlabs.com/xml/how-to-build-a-contact-manager-in-air-using-xml/"><strong>How to Build a Contact Manager in AIR using XML Part I</strong></a> and <strong><a target="_blank" href="http://www.thetechlabs.com/xml/how-to-build-a-contact-manager-in-air-using-xml-part-2/">Part II</a></strong></p>
<p><a target="_blank" href="http://www.thetechlabs.com/xml/how-to-build-a-contact-manager-in-air-using-xml/"><img height="304" alt="How to Build a Contact Manager in AIR using XML Part I" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170552WUH.jpg" /></a></p>
<p><a target="_blank" href="http://www.extjs.com/blog/2007/06/29/building-a-desktop-application-with-ext-air-aptana-and-red-bull/"><strong>Building a Desktop Application with Ext, AIR, Aptana and Red Bull</strong></a></p>
<p><a target="_blank" href="http://www.extjs.com/blog/2007/06/29/building-a-desktop-application-with-ext-air-aptana-and-red-bull/"><img height="297" alt="Building a Desktop Application with Ext, AIR, Aptana and Red Bull" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705537IT.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/articles/developing_crossplatform.html"><strong>Developing Cross-Platform Adobe AIR Applications</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/articles/developing_crossplatform.html"><img height="277" alt="Developing Cross-Platform Adobe AIR Applications" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170554KEC.jpg" /></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/create-a-drag-and-drop-mp3-player-with-adobe-air/"><strong>Create a Drag and Drop MP3 Player with Adobe AIR</strong></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/create-a-drag-and-drop-mp3-player-with-adobe-air/"><img height="200" alt="Create a Drag and Drop MP3 Player with Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170554BIP.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/articles/building_commercial_air_apps.html"><strong>Building Lupo: A Case Study in Building Commercial AIR Applications</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/articles/building_commercial_air_apps.html"><img height="381" alt="Building Lupo: A Case Study in Building Commercial AIR Applications" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170555Cnz.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html"><strong>Building Web and Adobe AIR Applications from a Shared Flex Code Base</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html"><img height="346" alt="Building Web and Adobe AIR Applications from a Shared Flex Code Base" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170556440.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/flex/articles/flex_aws.html"><strong>Creating Desktop Applications for the Cloud with Adobe Flex, AIR, and Amazon S3</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/flex/articles/flex_aws.html"><img height="287" alt="Creating Desktop Applications for the Cloud with Adobe Flex, AIR, and Amazon S3" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170556Zho.jpg" /></a></p>
<p><a target="_blank" href="http://www.petefreitag.com/item/667.cfm"><strong>Adobe Air Tutorial for HTML/JavaScript Developers</strong></a></p>
<p><a target="_blank" href="http://www.petefreitag.com/item/667.cfm"><img height="350" alt="Adobe Air Tutorial for HTML/JavaScript Developers" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705574Vr.jpg" /></a></p>
<p><a target="_blank" href="http://www.peachpit.com/articles/article.aspx?p=1247721"><strong>Implementing Drag and Drop Between the OS and AIR</strong></a></p>
<p><a target="_blank" href="http://www.peachpit.com/articles/article.aspx?p=1247721"><img height="282" alt="Implementing Drag and Drop Between the OS and AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170558QJL.jpg" /></a></p>
<p><a target="_blank" href="http://blog.kevinhoyt.org/?p=286"><strong>Notification Windows with JavaScript and AIR</strong></a></p>
<p><a target="_blank" href="http://blog.kevinhoyt.org/?p=286"><img height="288" alt="Notification Windows with JavaScript and AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705596Jx.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/ajax/articles/mapcache_on_air.html"><strong>Recreating MapCache on Adobe AIR</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/ajax/articles/mapcache_on_air.html"><img height="296" alt="Recreating MapCache on Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1705594MQ.jpg" /></a></p>
<p><a target="_blank" href="http://www.thetechlabs.com/video/creating-a-downloader-for-youtube-with-flexair-2/"><strong>Creating a Downloader for YouTube with Flex/AIR</strong></a></p>
<p><a target="_blank" href="http://www.thetechlabs.com/video/creating-a-downloader-for-youtube-with-flexair-2/"><img height="349" alt="Creating a Downloader for YouTube with Flex/AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170600i9c.jpg" /></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/adobe-air-todo-list-5-minutes"><strong>Walk on AIR: Create a To-do List in Five Minutes</strong></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/adobe-air-todo-list-5-minutes"><img height="269" alt="Walk on AIR: Create a To-do List in Five Minutes" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170601J20.jpg" /></a></p>
<p><a target="_blank" href="http://jurnal.tripmedia.ro/phone-book-adobe-air/1536.html"><strong>Adobe AIR &amp; Flash Tutorial</strong></a></p>
<p><a target="_blank" href="http://jurnal.tripmedia.ro/phone-book-adobe-air/1536.html"><img height="500" alt="Adobe AIR &amp; Flash Tutorial" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170601z5c.jpg" /></a></p>
<p><a target="_blank" href="http://www.gotoandlearn.com/play?id=41"><strong>Developing AIR in Flash</strong></a> (video)</p>
<p><a target="_blank" href="http://www.gotoandlearn.com/play?id=41"><img height="384" alt="Developing AIR in Flash" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170602pEh.jpg" /></a></p>
<p><a target="_blank" href="http://www.gotoandlearn.com/play?id=44"><strong>Webcams, PNGs, and AIR</strong></a> (video)</p>
<p><a target="_blank" href="http://www.gotoandlearn.com/play?id=44"><img height="383" alt="Webcams, PNGs, and AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170603BxB.jpg" /></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/adobe-air-pref-javascript"><strong>How to Store Adobe AIR Application Preferences Using JavaScript</strong></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/adobe-air-pref-javascript"><img height="270" alt="How to Store Adobe AIR Application Preferences Using JavaScript" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170603TpV.jpg" /></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/css-desktop-adobe-air"><strong>Take Your CSS to the Desktop with AIR</strong></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/css-desktop-adobe-air"><img height="303" alt="Take Your CSS to the Desktop with AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170604cvn.jpg" /></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/debugging-adobe-air-application"><strong>Adobe AIR: Supercharged Development with Debugging</strong></a></p>
<p><a target="_blank" href="http://articles.sitepoint.com/article/debugging-adobe-air-application"><img height="298" alt="Adobe AIR: Supercharged Development with Debugging" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170605QF5.jpg" /></a></p>
<p><a target="_blank" href="http://www.thetechlabs.com/tutorials/xml/creating-an-air-rss-reader-application-from-scratch-with-flex-puremvc/"><strong>Creating an AIR RSS Reader Application from Scratch with Flex and PureMVC</strong></a></p>
<p><a target="_blank" href="http://www.thetechlabs.com/tutorials/xml/creating-an-air-rss-reader-application-from-scratch-with-flex-puremvc/"><img height="341" alt="Creating an AIR RSS Reader Application from Scratch with Flex and PureMVC" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1706059yp.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/xml_viewer_on_air_print.html"><strong>Building an XML Viewer on AIR with Flex</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/xml_viewer_on_air_print.html"><img height="424" alt="Building an XML Viewer on AIR with Flex" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170606yZY.jpg" /></a></p>
<p><a target="_blank" href="http://devzone.zend.com/article/3447-Synchronizing-Drupal-Modules-with-Adobe-AIR"><strong>Synchronizing Drupal Modules with Adobe AIR</strong></a></p>
<p><a target="_blank" href="http://devzone.zend.com/article/3447-Synchronizing-Drupal-Modules-with-Adobe-AIR"><img height="283" alt="Synchronizing Drupal Modules with Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170607QXj.jpg" /></a></p>
<p><a target="_blank" href="http://www.hieu.co.uk/blog/index.php/2009/05/11/getting-start-with-adobe-air-as-web-developer-designer/"><strong>Getting Started with Adobe AIR as a Web Developer/Designer</strong></a></p>
<p><a target="_blank" href="http://www.hieu.co.uk/blog/index.php/2009/05/11/getting-start-with-adobe-air-as-web-developer-designer/"><img height="381" alt="Getting Started with Adobe AIR as a Web Developer/Designer" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170608wGV.jpg" /></a></p>
<p><a target="_blank" href="http://blog.kevinhoyt.org/?p=160"><strong>Simple Zip Viewer with JavaScript and AIR</strong></a></p>
<p><a target="_blank" href="http://blog.kevinhoyt.org/?p=160"><img height="285" alt="Simple Zip Viewer with JavaScript and AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170608yzn.jpg" /></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/framerate_throttling.html"><strong>Reducing CPU Usage in Adobe AIR</strong></a></p>
<p><a target="_blank" href="http://www.adobe.com/devnet/air/flex/articles/framerate_throttling.html"><img height="283" alt="Reducing CPU Usage in Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170609CGy.jpg" /></a></p>
<p><a target="_blank" href="http://blogs.adobe.com/air/2009/05/performance_tips_for_adobe_air.html"><strong>Performance Tips for Adobe AIR</strong></a></p>
<p><a target="_blank" href="http://blogs.adobe.com/air/2009/05/performance_tips_for_adobe_air.html"><img height="279" alt="Performance Tips for Adobe AIR" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170610wdg.jpg" /></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/create-your-own-adobe-air-application-with-flash/"><strong>Create Your Own Adobe Air Application with Flash</strong></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/create-your-own-adobe-air-application-with-flash/"><img height="429" alt="Create Your Own Adobe Air Application with Flash" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1706117gq.jpg" /></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/build-a-custom-file-extension-air-app/"><strong>Build a Custom File Extension AIR App</strong></a></p>
<p><a target="_blank" href="http://active.tutsplus.com/tutorials/air/build-a-custom-file-extension-air-app/"><img height="200" alt="Build a Custom File Extension AIR App" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/170612FzM.jpg" /></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/35-adobe-air-tutorials-for-web-developers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Display your number of tweets in full text mode on your WordPress blog</title>
		<link>http://www.cosmos-blog.com/how-to-display-your-number-of-tweets-in-full-text-mode-on-your-wordpress-blog</link>
		<comments>http://www.cosmos-blog.com/how-to-display-your-number-of-tweets-in-full-text-mode-on-your-wordpress-blog#comments</comments>
		<pubDate>Mon, 28 Dec 2009 02:23:00 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=5413</guid>
		<description><![CDATA[Twitter is obviously a very useful tools for bloggers. Did you ever wanted to know how many times your posts are sent to Twitter by your readers? If yes, just read on and learn how to know it, and display it on your blog, in full text mode. paste the following function in your functions.php [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>Twitter is obviously a very useful tools for bloggers. Did you ever wanted to know how many times your posts are sent to Twitter by your readers? If yes, just read on and learn how to know it, and display it on your blog, in full text mode.</p>
<p>paste the following function in your functions.php file:</p>
<p>&lt;?php<br />
function <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/tweets" title="View all posts in tweets" target="_blank">tweets</a></span>($url){<br />
&nbsp; $content = file_get_contents(&quot;http://api.tweetmeme.com/url_info?url=&quot;.$url);<br />
&nbsp; $x = new SimpleXmlElement($content);<br />
&nbsp; $<span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/tweets" title="View all posts in tweets" target="_blank">tweets</a></span> = $x-&gt;story-&gt;url_count;<br />
&nbsp; echo &quot;Tweets: &quot;.$<span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/tweets" title="View all posts in tweets" target="_blank">tweets</a></span>;<br />
}</p>
<p>Once done, you can get the number of tweets for any web page you want, for exemple:</p>
<p>&lt;?php tweets(&quot;http://www.cosmos-blog.com&quot;); ?&gt;</p>
<p>To automatically display how many times your posts has been tweet, open the single.php file file and paste the following code:</p>
<p>&lt;?php tweets($post-&gt;permalink); ?&gt;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/how-to-display-your-number-of-tweets-in-full-text-mode-on-your-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Tips of Writing Better CSS Code</title>
		<link>http://www.cosmos-blog.com/the-tips-of-writing-better-css-code</link>
		<comments>http://www.cosmos-blog.com/the-tips-of-writing-better-css-code#comments</comments>
		<pubDate>Mon, 09 Nov 2009 02:22:31 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=4313</guid>
		<description><![CDATA[CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code. 1. [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> code. Here are few tips that will help you write better and easy to manage CSS code.</p>
<h4>1. Don&rsquo;t Use Global Reset</h4>
<p>Using global reset to remove default margin and padding from all HTML elements is a strict no-no. Not only it is slow and inefficient way but you&rsquo;ll have to define margin and padding for each element that needs it. Instead use subset of CSS Resets like one from <font color="#cc3311">Eric Meyer</font>.<br />
<strong>Not Good&nbsp;&nbsp;&nbsp;&nbsp; </strong></p>
<ol>
<li class="alt"><span><span>*{&nbsp;</span><span class="keyword"><font color="#006699">margin</font></span><span>:0;&nbsp;</span><span class="keyword"><font color="#006699">padding</font></span><span>:0;&nbsp;}&nbsp;&nbsp;</span></span></li>
</ol>
<p><strong>Better</strong></p>
<div>
<ol class="dp-css">
<li class="alt"><span><span>html,&nbsp;body,&nbsp;div,&nbsp;dl,&nbsp;dt,&nbsp;dd,&nbsp;ul,&nbsp;&nbsp;h1,&nbsp;h2,&nbsp;h3,&nbsp;&nbsp;</span><span class="string"><font color="#0000ff">pre</font></span><span>,&nbsp;form,&nbsp;label,&nbsp;fieldset,&nbsp;input,&nbsp;p,&nbsp;blockquote,&nbsp;th,&nbsp;td&nbsp;{&nbsp;</span><span class="keyword"><font color="#006699">margin</font></span><span>:0;&nbsp;</span><span class="keyword"><font color="#006699">padding</font></span><span>:0&nbsp;} &nbsp;&nbsp;</span></span></li>
<li class=""><span>table&nbsp;{&nbsp;</span><span class="keyword"><font color="#006699">border-collapse</font></span><span>:</span><span class="string"><font color="#0000ff">collapse</font></span><span>;&nbsp;</span><span class="keyword"><font color="#006699">border-spacing</font></span><span>:0&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span>fieldset,&nbsp;img&nbsp;{&nbsp;</span><span class="keyword"><font color="#006699">border</font></span><span>:0&nbsp;} &nbsp;&nbsp;</span></li>
<li class=""><span>ul&nbsp;{&nbsp;</span><span class="keyword"><font color="#006699">list-style</font></span><span>:</span><span class="string"><font color="#0000ff">none</font></span><span>&nbsp;}&nbsp;&nbsp;</span></li>
</ol>
</div>
<p class="">&nbsp;</p>
<h4>2. Do not use IE Hacks</h4>
<p>Though CSS hacks might be useful to maintain consistent look of the website over older browsers like IE6, but they can be problematic for newer versions of IE as newer versions like IE8 do support CSS standards to a good level and using hacks might break out the layout. You should use conditional statements instead to target specific versions of Internet Explorer.<br />
For example, using the below lines of code within your <code>&lt;head&gt;</code> tag will load the iestyles.css file only when browser is Internet Explorer version 6 or less.</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span>&lt;!&#8211;[if&nbsp;lte&nbsp;IE&nbsp;6]&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&lt;link&nbsp;rel=</span><span class="string"><font color="#0000ff">&quot;stylesheet&quot;</font></span><span>&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/css&quot;</font></span><span>&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;styles/ie-styles.css&quot;</font></span><span>&nbsp;/&gt; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&lt;![endif]&#8211;&gt;&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">&lt;!--[if lte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/ie-styles.css&quot; /&gt;
&lt;![endif]--&gt;</pre>
<p>For information on conditional comments, refer to the quirksmode article on <a onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.quirksmode.org/css/condcom.html');" href="http://www.quirksmode.org/css/condcom.html"><font color="#cc3311">CSS Conditional Comments</font></a></p>
<h4>3. Use Meaningful names for IDs and Classes</h4>
<p>Suppose you define your sidebar styles using class <code>.leftbox</code> and after some redesign, you float it to right, then would it be meaningful to have leftbox as name for right floated box. You should put some thought before declaring classes and IDs for elements so that they are meaningful and easy to understand later.</p>
<h4>4. Utilize CSS Inheritance</h4>
<p>If multiple child elements of a parent element use same styles on your web page, it will be better to define them for their parent element and let the CSS inheritance do all the work. You&rsquo;ll be able to easily update your code later and it&rsquo;ll also reduce the CSS file size considerably.<br />
<strong>Not Good</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span class="colors">#contai</span><span>ner&nbsp;li{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:Georgia,&nbsp;</span><span class="string"><font color="#0000ff">serif</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></span></li>
<li class=""><span class="colors">#contai</span><span>ner&nbsp;p{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:Georgia,&nbsp;</span><span class="string"><font color="#0000ff">serif</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span class="colors">#contai</span><span>ner&nbsp;h1{</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:Georgia,&nbsp;</span><span class="string"><font color="#0000ff">serif</font></span><span>;&nbsp;}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">#container li{ font-family:Georgia, serif; }
#container p{ font-family:Georgia, serif; }
#container h1{font-family:Georgia, serif; }</pre>
<p><strong>Better</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span class="colors">#contai</span><span>ner{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:Georgia,&nbsp;</span><span class="string"><font color="#0000ff">serif</font></span><span>;&nbsp;}&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">#container{ font-family:Georgia, serif; }</pre>
<h4>5. Combine multiple Selectors</h4>
<p>You can combine multiple CSS selectors into one if they have common style definitions. It&rsquo;ll save you time and space.</p>
<p><strong>Not Good</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span>h1{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-weight</font></strong></span><span>:</span><span class="string"><font color="#0000ff">normal</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></span></li>
<li class=""><span>h2{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-weight</font></strong></span><span>:</span><span class="string"><font color="#0000ff">normal</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span>h3{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-weight</font></strong></span><span>:</span><span class="string"><font color="#0000ff">normal</font></span><span>;&nbsp;}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">h1{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h2{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }</pre>
<p><strong>Better</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span>h1,&nbsp;h2,&nbsp;h3{&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-weight</font></strong></span><span>:</span><span class="string"><font color="#0000ff">normal</font></span><span>;&nbsp;}&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">h1, h2, h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }</pre>
<h4>6. Use Shorthand Properties</h4>
<p>Utilize the shorthand properties of CSS to quickly write CSS code and reduce file size. Shorthand notation can be used for <code>margin, padding, border, font, background</code> and also for color values.<br />
<strong>Not Good</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span>li{ &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-size</font></strong></span><span>:&nbsp;1.2em; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">line-height</font></strong></span><span>:&nbsp;1.4em; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding-top</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding-bottom</font></strong></span><span>:</span><span class="string"><font color="#0000ff">10px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding-left</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">li{
	font-family:Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	line-height: 1.4em;
	padding-top:5px;
	padding-bottom:10px;
	padding-left:5px;
}</pre>
<p><strong>Better</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span>li{ &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">font</font></strong></span><span>:&nbsp;1.2em/1.4em&nbsp;</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>&nbsp;0&nbsp;</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">li{
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	padding:5px 0 10px 5px;
}</pre>
<p>Here&rsquo;s a complete guide to <a onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/');" href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/"><font color="#cc3311">CSS shorthand properties</font></a>.</p>
<h4>7. Organize CSS <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/code" title="View all posts in Code" target="_blank">Code</a></span></h4>
<p>Organizing your CSS code in a certain pattern will make it easier to find things at later time and save you a lot of time looking for a specific style definition.<br />
Here is a sample organization that you may use:</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- </font></span>&nbsp;</span></li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;CSS&nbsp;Reset </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- </font></span>&nbsp;</li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Generic&nbsp;Classes </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- </font></span>&nbsp;</li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Layout&nbsp;styles </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- </font></span>&nbsp;</li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Section&nbsp;specific&nbsp;styles </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</font></span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">/*-------------------------
	CSS Reset
-------------------------*/

/*-------------------------
	Generic Classes
-------------------------*/

/*-------------------------
	Layout styles
-------------------------*/

/*-------------------------
	Section specific styles
-------------------------*/</pre>
<h4>8. Make CSS Readable</h4>
<p>Writing readable CSS will make it easier to find and update a style declaration later. Either group all styles for a selector in one line or each style in its own line with proper indentation. You can also combine these two techniques together.</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; </font></span>&nbsp;</span></li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Each&nbsp;Style&nbsp;on&nbsp;new&nbsp;line </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>div{ &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">background-color</font></strong></span><span>:</span><span class="colors">#3399cc</span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">color</font></strong></span><span>:</span><span class="colors">#666</span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">font</font></strong></span><span>:&nbsp;1.2em/1.4em&nbsp;</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">height</font></strong></span><span>:</span><span class="string"><font color="#0000ff">300px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">margin</font></strong></span><span>:</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>&nbsp;0&nbsp;</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">width</font></strong></span><span>:30%; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">z-index</font></strong></span><span>:10; &nbsp;&nbsp;</span></li>
<li class="alt"><span>} &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; </font></span>&nbsp;</li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;All&nbsp;Styles&nbsp;on&nbsp;one&nbsp;line </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>div{&nbsp;</span><span class="keyword"><strong><font color="#006699">background-color</font></strong></span><span>:</span><span class="colors">#3399cc</span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">color</font></strong></span><span>:</span><span class="colors">#666</span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font</font></strong></span><span>:&nbsp;1.2em/1.4em&nbsp;</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">height</font></strong></span><span>:</span><span class="string"><font color="#0000ff">300px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">margin</font></strong></span><span>:</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>&nbsp;0&nbsp;</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">width</font></strong></span><span>:30%;&nbsp;</span><span class="keyword"><strong><font color="#006699">z-index</font></strong></span><span>:10;&nbsp;}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">/*------------------------
	Each Style on new line
	---------------------*/
div{
	background-color:#3399cc;
	color:#666;
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	height:300px;
	margin:10px 5px;
	padding:5px 0 10px 5px;
	width:30%;
	z-index:10;
}

/*------------------------
	All Styles on one line
	---------------------*/
div{ background-color:#3399cc; color:#666; font: 1.2em/1.4em Arial, Helvetica, sans-serif;  height:300px; margin:10px 5px; padding:5px 0 10px 5px; width:30%; z-index:10; }</pre>
<h4>9. Add proper Comments</h4>
<p>Comments can be used to separate different sections of CSS code</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://webdeveloperplus.com/css/tips-to-write-better-css-code/#"></a></div>
</div>
<ol class="dp-css">
<li class="alt"><span><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </font></span>&nbsp;</span></li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Header </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span class="colors">#header</span><span>{&nbsp;</span><span class="keyword"><strong><font color="#006699">height</font></strong></span><span>:</span><span class="string"><font color="#0000ff">145px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">position</font></strong></span><span>:</span><span class="string"><font color="#0000ff">relative</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span class="colors">#header</span><span>&nbsp;h1{&nbsp;</span><span class="keyword"><strong><font color="#006699">width</font></strong></span><span>:</span><span class="string"><font color="#0000ff">324px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">margin</font></strong></span><span>:</span><span class="string"><font color="#0000ff">45px</font></span><span>&nbsp;0&nbsp;0&nbsp;</span><span class="string"><font color="#0000ff">20px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">float</font></strong></span><span>:</span><span class="string"><font color="#0000ff">left</font></span><span>;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">height</font></strong></span><span>:</span><span class="string"><font color="#0000ff">72px</font></span><span>;} &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </font></span>&nbsp;</li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Content </font></span>&nbsp;</span></li>
<li class="alt"><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span class="colors">#conten</span><span>t{&nbsp;</span><span class="keyword"><strong><font color="#006699">background</font></strong></span><span>:</span><span class="colors">#fff</span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">width</font></strong></span><span>:</span><span class="string"><font color="#0000ff">650px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">float</font></strong></span><span>:</span><span class="string"><font color="#0000ff">left</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">min-height</font></strong></span><span>:</span><span class="string"><font color="#0000ff">600px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">overflow</font></strong></span><span>:</span><span class="string"><font color="#0000ff">hidden</font></span><span>;} &nbsp;&nbsp;</span></li>
<li class="alt"><span class="colors">#conten</span><span>t&nbsp;.posts{&nbsp;</span><span class="keyword"><strong><font color="#006699">overflow</font></strong></span><span>:</span><span class="string"><font color="#0000ff">hidden</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></li>
<li class=""><span class="colors">#conten</span><span>t&nbsp;.recent{&nbsp;</span><span class="keyword"><strong><font color="#006699">margin-bottom</font></strong></span><span>:</span><span class="string"><font color="#0000ff">20px</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">border-bottom</font></strong></span><span>:</span><span class="string"><font color="#0000ff">1px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">solid</font></span><span>&nbsp;</span><span class="colors">#f3f3f3</span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">position</font></strong></span><span>:</span><span class="string"><font color="#0000ff">relative</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">overflow</font></strong></span><span>:</span><span class="string"><font color="#0000ff">hidden</font></span><span>;&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;</span></li>
<li class=""><span class="comment"><font color="#008200">/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </font></span>&nbsp;</li>
<li class="alt"><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;Footer </font></span>&nbsp;</span></li>
<li class=""><span><span class="comment"><font color="#008200">&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/</font></span><span>&nbsp;&nbsp;</span></span></li>
<li class="alt"><span class="colors">#footer</span><span>{&nbsp;</span><span class="keyword"><strong><font color="#006699">clear</font></strong></span><span>:</span><span class="string"><font color="#0000ff">both</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding</font></strong></span><span>:</span><span class="string"><font color="#0000ff">50px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>&nbsp;0;&nbsp;</span><span class="keyword"><strong><font color="#006699">overflow</font></strong></span><span>:</span><span class="string"><font color="#0000ff">hidden</font></span><span>;} &nbsp;&nbsp;</span></li>
<li class=""><span class="colors">#footer</span><span>&nbsp;h4{&nbsp;</span><span class="keyword"><strong><font color="#006699">color</font></strong></span><span>:</span><span class="colors">#b99d7f</span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-family</font></strong></span><span>:</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>;&nbsp;</span><span class="keyword"><strong><font color="#006699">font-size</font></strong></span><span>:1.1em;&nbsp;}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">/*--------------------
	Header
	-----------------*/
#header{ height:145px; position:relative; }
#header h1{ width:324px; margin:45px 0 0 20px; float:left;  height:72px;}

/*--------------------
	Content
	-----------------*/
#content{ background:#fff; width:650px; float:left; min-height:600px; overflow:hidden;}
#content .posts{ overflow:hidden; }
#content .recent{ margin-bottom:20px; border-bottom:1px solid #f3f3f3; position:relative; overflow:hidden; }

/*--------------------
	Footer
	-----------------*/
#footer{ clear:both; padding:50px 5px 0; overflow:hidden;}
#footer h4{ color:#b99d7f; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; }</pre>
<h4>10. Order CSS Properties Alphabetically</h4>
<p class="">This might be a difficult way to write CSS but it&rsquo;ll make it easier for you to find out any property easily at a later stage.</p>
<div class="dp-highlighter">
<ol class="dp-css">
<li class="alt"><span><span>div{ &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">background-color</font></strong></span><span>:</span><span class="colors">#3399cc</span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">color</font></strong></span><span>:&nbsp;&nbsp;</span><span class="colors">#666</span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">font</font></strong></span><span>:&nbsp;&nbsp;&nbsp;1.2em/1.4em&nbsp;</span><span class="string"><font color="#0000ff">Arial</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">Helvetica</font></span><span>,&nbsp;</span><span class="string"><font color="#0000ff">sans-serif</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">height</font></strong></span><span>:&nbsp;</span><span class="string"><font color="#0000ff">300px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">margin</font></strong></span><span>:&nbsp;</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">padding</font></strong></span><span>:</span><span class="string"><font color="#0000ff">5px</font></span><span>&nbsp;0&nbsp;</span><span class="string"><font color="#0000ff">10px</font></span><span>&nbsp;</span><span class="string"><font color="#0000ff">5px</font></span><span>; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">width</font></strong></span><span>:&nbsp;&nbsp;30%; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword"><strong><font color="#006699">z-index</font></strong></span><span>:10; &nbsp;&nbsp;</span></li>
<li class=""><span>}&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">div{
	background-color:#3399cc;
	color:	#666;
	font: 	1.2em/1.4em Arial, Helvetica, sans-serif;
	height:	300px;
	margin:	10px 5px;
	padding:5px 0 10px 5px;
	width:	30%;
	z-index:10;
}</pre>
<h4>11. Use External Stylesheets</h4>
<p>It is always a good design practice to separate content from presentation. Place all of your CSS code into external stylesheets and use the <code>&lt;link&gt;</code> to reference stylesheets within a web page. By placing CSS into external files, you can easily update your styles later at one place instead of looking into html templates or files for styles.<br />
<strong>Not Good</strong></p>
<div class="dp-highlighter">
<ol class="dp-xml">
<li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">style</span><span>&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">&quot;text/css&quot;</span><span>&nbsp;</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;#container{&nbsp;..&nbsp;} &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;#sidebar{&nbsp;..&nbsp;} &nbsp;&nbsp;</span></li>
<li class=""><span class="tag">&lt;/</span><span class="tag-name">style</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;</span></li>
<li class=""><span>OR &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;</span></li>
<li class=""><span class="tag">&lt;</span><span class="tag-name">li</span><span>&nbsp;</span><span class="attribute">style</span><span>=</span><span class="attribute-value">&quot;font-family:Arial,&nbsp;helvetica,&nbsp;sans-serif;&nbsp;color:#666;&nbsp;&quot;</span><span>&nbsp;</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="html" style="display: none" name="code">&lt;style type=&quot;text/css&quot; &gt;
	#container{ .. }
	#sidebar{ .. }
&lt;/style&gt;

OR

&lt;li style=&quot;font-family:Arial, helvetica, sans-serif; color:#666; &quot; &gt;</pre>
<p><strong>Better</strong></p>
<div class="dp-highlighter">
<ol class="dp-xml">
<li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">link</span><span>&nbsp;</span><span class="attribute">rel</span><span>=</span><span class="attribute-value">&quot;stylesheet&quot;</span><span>&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">&quot;text/css&quot;</span><span>&nbsp;</span><span class="attribute">href</span><span>=</span><span class="attribute-value">&quot;css/styles.css&quot;</span><span>&nbsp;</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<pre class="html" style="display: none" name="code">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/styles.css&quot; /&gt;</pre>
<h4>12. Split CSS into multiple files</h4>
<p>If you are working on a large web project that has multiple modules, each with different set of styles and looks, it will be better to split your CSS files into multiple files based on the module they are applied to. You can separate stylesheets like, one for reset, one for layout, one for generic classes and one for module specific styles. This technique will let you organize your code easily in a large project but loading multiple CSS files means more HTTP requests and slower loading time, this is where Bridging CSS files come to rescue. Create a separate CSS file and import other CSS files into it.</p>
<div class="dp-highlighter">
<ol class="dp-css">
<li class="alt"><span><span>@import&nbsp;</span><span class="string"><font color="#0000ff">&quot;style/css/reset.css&quot;</font></span><span>; &nbsp;&nbsp;</span></span></li>
<li class=""><span>@import&nbsp;</span><span class="string"><font color="#0000ff">&quot;style/css/typography.css&quot;</font></span><span>; &nbsp;&nbsp;</span></li>
<li class="alt"><span>@import&nbsp;</span><span class="string"><font color="#0000ff">&quot;style/css/layout.css&quot;</font></span><span>;&nbsp;&nbsp;</span></li>
</ol>
</div>
<pre class="css" style="display: none" name="code">@import &quot;style/css/reset.css&quot;;
@import &quot;style/css/typography.css&quot;;
@import &quot;style/css/layout.css&quot;;</pre>
<h4>13. Compress CSS code</h4>
<p>Once you are ready to deploy the web design project, compress your CSS code using tools like <a onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.csscompressor.com/');" href="http://www.csscompressor.com/"><font color="#cc3311">CSS Compressor</font></a> to reduce file size and improve loading time of webpage.</p>
<h4>14. Be Consistent in Writing CSS</h4>
<p>When you work on multiple web development projects, it&rsquo;ll be a wise decision to choose a particular way of organizing and formatting your CSS code and stick to that way for all your projects.</p>
<p>I hope these tips will help you write better and manageable CSS code. If you would like to share a tip or two, feel free to add your comment below.</p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/the-tips-of-writing-better-css-code/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Illustrator Tip: How to Make a Beveled Star</title>
		<link>http://www.cosmos-blog.com/illustrator-tip-how-to-make-a-beveled-star</link>
		<comments>http://www.cosmos-blog.com/illustrator-tip-how-to-make-a-beveled-star#comments</comments>
		<pubDate>Tue, 03 Nov 2009 02:30:53 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Beveled Star]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[photoshop beveled star]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/16-illustrator-tip-how-to-make-a-beveled-star</guid>
		<description><![CDATA[This tutorial will show you how to create a beveled star using adobe illustrator CS4. Using just the star tool, the line segment tool and the live paint bucket you will be able to replicate this 3D looking star. 1. Creating the star Start by opening a blank artboard and select the star tool (hidden [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>This tutorial will show you how to create a beveled star using adobe illustrator CS4. Using just the star tool, the line segment tool and the live paint bucket you will be able to replicate this 3D looking star.</p>
<h3>1. Creating the star</h3>
<p>Start by opening a blank artboard and select the star tool (hidden behind the rectangle tool), then click and drag anywhere on the artboard. Hold shift while you draw if you want a perfect looking star. You can change the number of points of the star and the radius by clicking inside the star after it was created.</p>
<p><img class="alignnone size-full wp-image-391" title="image005" height="262" alt="image005" width="45" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/043232vn5.jpg" /><img class="alignnone size-full wp-image-389" title="image001" height="262" alt="image001" width="266" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1932321Cq.jpg" /><img class="alignnone size-full wp-image-390" title="image002" height="294" alt="image002" width="438" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1932322lx.jpg" /></p>
<h3>2. Adding the Lines</h3>
<p>Select the line segment tool () and start by clicking on the uppermost point of your star and drag down a vertical line down the star to the next point.</p>
<p><img class="alignnone size-full wp-image-393" title="image023" height="268" alt="image023" width="42" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/19323293I.jpg" /><img class="alignnone size-full wp-image-394" title="image024" height="312" alt="image024" width="331" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193232qtu.jpg" /><img class="alignnone size-full wp-image-395" title="image025" height="314" alt="image025" width="319" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193232L4i.jpg" /></p>
<p>Do this for the rest of the points.</p>
<h3>3. Preparing to use Live Paint</h3>
<p>Select all the lines and the star using the selection tool (V)</p>
<p><img class="alignnone size-full wp-image-396" title="image026" height="93" alt="image026" width="41" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1932332DL.jpg" /><img class="alignnone size-full wp-image-397" title="image027" height="295" alt="image027" width="310" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233WGY.jpg" /></p>
<h3>4. Adding First Color</h3>
<p>Select the live paint bucket (K) once and all the lines will be selected. Chose the first color you want to use ( choose a light color for the highlights).</p>
<p><img class="alignnone size-full wp-image-398" title="image028" height="133" alt="image028" width="39" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233Awx.jpg" /><img class="alignnone size-full wp-image-399" title="image029" height="140" alt="image029" width="222" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/1932336wH.jpg" /></p>
<p>Use the live paint bucket to fill in a pattern like this.</p>
<p><img class="alignnone size-full wp-image-400" title="image030" height="299" alt="image030" width="311" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233njn.jpg" /></p>
<h3>5. Adding Second Color</h3>
<p>Go back to the color window and chose a slightly darker color for the shadow. Fill in the rest of the white space with the new darker color acting as a shadow.</p>
<p><img class="alignnone size-full wp-image-401" title="image031" height="138" alt="image031" width="220" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233GOl.jpg" /></p>
<p><img class="alignnone size-full wp-image-402" title="image032" height="306" alt="image032" width="302" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233m6t.jpg" /></p>
<h3>6. Getting Rid Of The Stroke</h3>
<p>If you want to get rid of the stroke, select the entire star with the selection tool and go to the color window and set the stroke color to none. You can also change it to any other color you want.</p>
<p><img class="alignnone size-full wp-image-403" title="image033" height="328" alt="image033" width="507" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193233DGw.jpg" /></p>
<h3>7. You&rsquo;re Done!</h3>
<p>That is how you make a beveled star.</p>
<p><img class="alignnone size-full wp-image-388" title="image003" height="296" alt="image003" width="296" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193234swC.jpg" /></p>
<h3>8. Be Creative</h3>
<p>With some tweaking and changing of the radius and number if points of the star you will be able to create many different outcomes.</p>
<p><img class="alignnone size-full wp-image-404" title="image034" height="250" alt="image034" width="500" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2010/01/193234Mfk.jpg" /></p>
<p><script type="text/javascript">AKPC_IDS += "387,";</script></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/illustrator-tip-how-to-make-a-beveled-star/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Usefull CSS Techniques For Designers</title>
		<link>http://www.cosmos-blog.com/usefull-css-techniques-for-designers</link>
		<comments>http://www.cosmos-blog.com/usefull-css-techniques-for-designers#comments</comments>
		<pubDate>Mon, 19 Oct 2009 06:41:32 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/usefull-css-techniques-for-designers</guid>
		<description><![CDATA[CSS is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don&#8217;t have in table-layouts &#8211; and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don&rsquo;t have in table-layouts &ndash; and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just replacing a css-file with another one. Isn&rsquo;t it great? Well, actually, it is.</p>
<p>1. <a target="_blank" href="http://www.nundroo.com/navigation/">CSS Based Navigation</a></p>
<p><a target="_blank" href="http://www.nundroo.com/navigation/"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/234101vBl.gif" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/234101vBl.gif" /></a></p>
<p>2. <a target="_blank" href="http://superfluousbanter.org/archives/2004/05/navigation-matrix-reloaded/">Navigation Matrix Reloaded</a></p>
<p><a target="_blank" href="http://superfluousbanter.org/archives/2004/05/navigation-matrix-reloaded/"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144102LZm.gif" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144102LZm.gif" /></a></p>
<p>3. <a target="_blank" href="http://exploding-boy.com/images/cssmenus/menus.html">CSS Tabs</a></p>
<p><a target="_blank" href="http://exploding-boy.com/images/cssmenus/menus.html"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144103vM1.gif" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144103vM1.gif" /></a></p>
<p>4. <a target="_blank" href="http://www.khmerang.com/index.php?p=118">CSS Bar Graphs</a> (<a target="_blank" href="http://applestooranges.com/blog/post/css-for-bar-graphs/?id=55">CSS For Bar Graphs</a>)</p>
<p><a target="_blank" href="http://www.khmerang.com/index.php?p=118"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144104cKr.gif" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144104cKr.gif" /></a></p>
<p>5. <a target="_blank" href="http://icant.co.uk/sandbox/footercollapsetables/">Collapsing Tables: An Example</a></p>
<p><a target="_blank" href="http://icant.co.uk/sandbox/footercollapsetables/"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14410409b.gif" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14410409b.gif" /></a></p>
<p>6. <a target="_blank" href="http://www.flog.co.nz/lab/ARC/ARC.htm">Adam&rsquo;s Radio &amp; Checkbox Customisation Method</a></p>
<p><a target="_blank" href="http://www.flog.co.nz/lab/ARC/ARC.htm"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144105WIz.gif" jquery1255933658781="9" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144105WIz.gif" /></a></p>
<p>7. <a target="_blank" href="http://www.mezzoblue.com/tests/revised-image-replacement/">CSS Image Replacement</a></p>
<p><a target="_blank" href="http://www.mezzoblue.com/tests/revised-image-replacement/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144105ECi.gif" jquery1255933658781="383" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144105ECi.gif" /></a></p>
<p>8. <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> Shadows (<a target="_blank" href="http://web-graphics.com/mtarchive/001589.php">CSS Shadows Roundup</a>)</p>
<p><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144106Faq.gif" jquery1255933658781="385" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144106Faq.gif" /></p>
<p>9. <a target="_blank" href="http://www.smileycat.com/miaow/archives/000044.html">CSS Rounded Corners Roundup</a> (<a target="_blank" href="http://www.html.it/articoli/nifty/index.html">Nifty Corners</a>)</p>
<p><a target="_blank" href="http://www.smileycat.com/miaow/archives/000044.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144107IOK.gif" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144107IOK.gif" /></a></p>
<p>10. <a target="_blank" href="http://www.mandarindesign.com/troops.html">Drop Cap &ndash; Capital Letters with CSS</a></p>
<p><a target="_blank" href="http://www.mandarindesign.com/troops.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144107Vf3.gif" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144107Vf3.gif" /></a></p>
<p>11. <a target="_blank" href="http://www.mandarindesign.com/troops.html#opacitybackgroundhard">Define Image Opacity with CSS</a></p>
<p><a target="_blank" href="http://www.mandarindesign.com/troops.html#opacitybackgroundhard"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144108Y7T.gif" jquery1255933658781="389" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144108Y7T.gif" /></a></p>
<p>12. <a target="_blank" href="http://www.smileycat.com/miaow/archives/000230.html">How to Create a Block Hover Effect for a List of Links</a></p>
<p><a target="_blank" href="http://www.smileycat.com/miaow/archives/000230.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441091Oo.gif" jquery1255933658781="391" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441091Oo.gif" /></a></p>
<p>13. <a target="_blank" href="http://www.sitepoint.com/test/pullquote.htm">Pullquotes with CSS</a> (<a target="_blank" href="http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/">Automatic Pullquotes with JavaScript and CSS</a></p>
<p><a target="_blank" href="http://www.sitepoint.com/test/pullquote.htm"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144109bvR.gif" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144109bvR.gif" /></a></p>
<p>14. <a target="_blank" href="http://www.surfare.net/~toolman/temp/diagram.html">CSS Diagrams</a></p>
<p><a target="_blank" href="http://www.surfare.net/~toolman/temp/diagram.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144110315.gif" jquery1255933658781="394" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144110315.gif" /></a></p>
<p>15. <a target="_blank" href="http://couchfort.net/article/59/css-curves">CSS Curves</a></p>
<p><a target="_blank" href="http://couchfort.net/article/59/css-curves"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144110fTX.gif" jquery1255933658781="396" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144110fTX.gif" /></a></p>
<p>16. <a target="_blank" href="http://www.themaninblue.com/experiment/footerStickAlt/">Footer Stick</a> allows for the footer of a Web page to appear either at the bottom of the browser window or the bottom of the Web page content &ndash; whichever is visually lowest.</p>
<p><a target="_blank" href="http://www.themaninblue.com/experiment/footerStickAlt/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144111DVV.gif" jquery1255933658781="398" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144111DVV.gif" /></a></p>
<p>17. <a target="_blank" href="http://www.frankmanno.com/ideas/css-imagemap/">CSS Image Map</a></p>
<p><a target="_blank" href="http://www.frankmanno.com/ideas/css-imagemap/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144112PoN.gif" jquery1255933658781="400" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144112PoN.gif" /></a></p>
<p>18. <a target="_blank" href="http://moneytreesystems.com/css/picpopup.html">CSS Image Pop-Up</a></p>
<p><a target="_blank" href="http://moneytreesystems.com/css/picpopup.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144113gR4.gif" jquery1255933658781="402" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144113gR4.gif" /></a></p>
<p>19. <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/css" title="View all posts in CSS" target="_blank">CSS</a></span> Image Preloader</p>
<p><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441136PI.gif" jquery1255933658781="404" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441136PI.gif" /></p>
<p>20. <a target="_blank" href="http://www.ampsoft.net/webdesign-l/image-button.html">CSS Image Replacement for Buttons</a></p>
<p><a target="_blank" href="http://www.ampsoft.net/webdesign-l/image-button.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144113CJH.gif" jquery1255933658781="406" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144113CJH.gif" /></a></p>
<p>21. <a target="_blank" href="http://lab.arc90.com/2006/07/link_thumbnail.php">Link Thumbnail</a></p>
<p><a target="_blank" href="http://lab.arc90.com/2006/07/link_thumbnail.php"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144114FUj.gif" jquery1255933658781="408" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144114FUj.gif" /></a></p>
<p>22. <a target="_blank" href="http://mikecherim.com/experiments/css_map_pop.php">CSS Map Pop</a></p>
<p><a target="_blank" href="http://mikecherim.com/experiments/css_map_pop.php"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144115ldq.gif" jquery1255933658781="410" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144115ldq.gif" /></a></p>
<p>23. <a target="_blank" href="http://mikecherim.com/gbcms_xml/news_page.php?id=12">PHP-based CSS Style Switcher</a></p>
<p><a target="_blank" href="http://mikecherim.com/gbcms_xml/news_page.php?id=12"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144116WtK.gif" jquery1255933658781="412" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144116WtK.gif" /></a></p>
<p>24. <a target="_blank" href="http://mikecherim.com/gbcms_xml/news_page.php?id=0">CSS Unordered List Calender</a> (<a target="_blank" href="http://veerle.duoh.com/blog/comments/a_css_styled_calendar/">CSS Styled Calender</a>)</p>
<p><a target="_blank" href="http://mikecherim.com/gbcms_xml/news_page.php?id=0"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144116G3Q.gif" jquery1255933658781="414" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144116G3Q.gif" /></a></p>
<p>25. <a target="_blank" href="http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/">CSS-Based Forms: Techniques</a></p>
<p><a target="_blank" href="http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144117lAE.gif" jquery1255933658781="416" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144117lAE.gif" /></a></p>
<p>26. <a target="_blank" href="http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/">CSS-Based Tables: Techniques</a></p>
<p><a target="_blank" href="http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144118sWR.gif" jquery1255933658781="418" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144118sWR.gif" /></a></p>
<p>27. <a target="_blank" href="http://css-discuss.incutio.com/?page=PrintStylesheets">Printing Web-Documents and CSS</a></p>
<p><a target="_blank" href="http://css-discuss.incutio.com/?page=PrintStylesheets"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144118S2J.gif" jquery1255933658781="420" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144118S2J.gif" /></a></p>
<p>28. <a target="_blank" href="http://www.alistapart.com/articles/improvingprint/">Improved Links-Display for Print-Layouts with CSS</a></p>
<p><a target="_blank" href="http://www.alistapart.com/articles/improvingprint/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144119YDm.gif" jquery1255933658781="422" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144119YDm.gif" /></a></p>
<p>29. <a target="_blank" href="http://www.ukthoughts.co.uk/journal/css-submit-buttons">CSS-Submit Buttons</a></p>
<p><a target="_blank" href="http://www.ukthoughts.co.uk/journal/css-submit-buttons"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144119gy3.gif" jquery1255933658781="424" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144119gy3.gif" /></a></p>
<p>30. <a target="_blank" href="http://www.456bereastreet.com/lab/teaser/">CSS Teaser Box</a></p>
<p><a target="_blank" href="http://www.456bereastreet.com/lab/teaser/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441201Zs.gif" jquery1255933658781="426" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441201Zs.gif" /></a></p>
<p>31. <a target="_blank" href="http://www.macworld.com/2005/12/secrets/januarycreate/index.php">CSS Tricks for Custom Bullets</a></p>
<p><a target="_blank" href="http://www.macworld.com/2005/12/secrets/januarycreate/index.php"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441205vm.gif" jquery1255933658781="428" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441205vm.gif" /></a></p>
<p>32. <a target="_blank" href="http://www.colly.com/index.php?/weblog/comments/ticked_off_links_reloaded">Ticked Off Links Reloaded</a></p>
<p><a target="_blank" href="http://www.colly.com/index.php?/weblog/comments/ticked_off_links_reloaded"><img style="margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="false" original="http://media1.smashingmagazine.com/images/css/css-techniques0031.gif" jquery1255933658781="430" src="http://www.cosmos-blog.com/wp-content/themes/SM-theme/img/blank.gif" /></a></p>
<p>33. <a target="_blank" href="http://www.deltatangobravo.com/images/zoom/">CSS Zooming</a></p>
<p><a target="_blank" href="http://www.deltatangobravo.com/images/zoom/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441219zF.gif" jquery1255933658781="432" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441219zF.gif" /></a></p>
<p>34. <a target="_blank" href="http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/">Creating a Star Rater using CSS</a></p>
<p><a target="_blank" href="http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144121aLf.gif" jquery1255933658781="434" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144121aLf.gif" /></a></p>
<p>35. <a target="_blank" href="http://webdesign.maratz.com/lab/visited_links_styling/">The ways to style visited Links</a></p>
<p><a target="_blank" href="http://webdesign.maratz.com/lab/visited_links_styling/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122pHQ.gif" jquery1255933658781="436" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122pHQ.gif" /></a></p>
<p>36. <a target="_blank" href="http://webdesign.maratz.com/lab/pdf_links_labeling/">PDF, ZIP, DOC Links Labeling</a></p>
<p><a target="_blank" href="http://webdesign.maratz.com/lab/pdf_links_labeling/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122lXp.gif" jquery1255933658781="438" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122lXp.gif" /></a></p>
<p>37. Displaying Percentages with CSS</p>
<p><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122NSM.gif" jquery1255933658781="440" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144122NSM.gif" /></p>
<p>38. <a target="_blank" href="http://ghettocooler.net/2005/11/13/image-floats-without-the-text-wrap/">Image Floats without the Text Wrap</a></p>
<p><a target="_blank" href="http://ghettocooler.net/2005/11/13/image-floats-without-the-text-wrap/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14412370H.gif" jquery1255933658781="442" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14412370H.gif" /></a></p>
<p>39. <a target="_blank" href="http://webdesign.maratz.com/lab/new_window_link/">Let visitors decide, whether or not will they open link in a new window</a></p>
<p><a target="_blank" href="http://webdesign.maratz.com/lab/new_window_link/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144124K40.gif" jquery1255933658781="444" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144124K40.gif" /></a></p>
<p>40. <a target="_blank" href="http://www.maxdesign.com.au/presentation/external/">Simple accessible external links</a></p>
<p><a target="_blank" href="http://www.maxdesign.com.au/presentation/external/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144124lyc.gif" jquery1255933658781="446" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144124lyc.gif" /></a></p>
<p>41. <a target="_blank" href="http://24ways.org/2005/splintered-striper">Zebra Table with JavaScript and CSS</a></p>
<p><a target="_blank" href="http://24ways.org/2005/splintered-striper"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441250b2.gif" jquery1255933658781="448" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1441250b2.gif" /></a></p>
<p>42. <a target="_blank" href="http://www.jakpsatweb.cz/css/css-vertical-center-solution.html">Vertical Centering with CSS</a> (<a target="_blank" href="http://www.456bereastreet.com/lab/centered/both/">Horizontal and Vertical Centering with CSS</a></p>
<p><a target="_blank" href="http://www.jakpsatweb.cz/css/css-vertical-center-solution.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144125QHj.gif" jquery1255933658781="450" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144125QHj.gif" /></a></p>
<p>43. <a target="_blank" href="http://lab.arc90.com/2006/05/unobtrusive_sidenotes.php">Unobtrusive Sidenotes</a></p>
<p><a target="_blank" href="http://lab.arc90.com/2006/05/unobtrusive_sidenotes.php"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144126ijE.gif" jquery1255933658781="452" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144126ijE.gif" /></a></p>
<p>44. <a target="_blank" href="http://lab.arc90.com/2006/07/image_caption_1.php">Image Caption with CSS</a> (<a target="_blank" href="http://www.boagworld.com/archives/2006/07/styled_images_with_caption.html">Styled Images with Caption</a>)</p>
<p><a target="_blank" href="http://lab.arc90.com/2006/07/image_caption_1.php"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144126OZj.gif" jquery1255933658781="454" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144126OZj.gif" /></a></p>
<p>45. <a target="_blank" href="http://petewilliamsagency.com/css/examples/pie/">Dynamic Piechart with CSS</a></p>
<p><a target="_blank" href="http://petewilliamsagency.com/css/examples/pie/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144127Vda.gif" jquery1255933658781="456" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144127Vda.gif" /></a></p>
<p>46. <a target="_blank" href="http://www.brandspankingnew.net/archive/2005/07/format_footnote.html">Format Footnotes with CSS</a></p>
<p><a target="_blank" href="http://www.brandspankingnew.net/archive/2005/07/format_footnote.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144127eva.gif" jquery1255933658781="458" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144127eva.gif" /></a></p>
<p>47. <a target="_blank" href="http://www.alexandersperl.de/tutorials/css/sitemap.html">Hierarchical Sitemap with CSS</a></p>
<p><a target="_blank" href="http://www.alexandersperl.de/tutorials/css/sitemap.html"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144128qX3.gif" jquery1255933658781="460" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144128qX3.gif" /></a></p>
<p>48. <a target="_blank" href="http://www.colly.com/index.php?/weblog/comments/snooks_resizable_underlines/">Snook&rsquo;s Resizable Underlines</a></p>
<p><a target="_blank" href="http://www.colly.com/index.php?/weblog/comments/snooks_resizable_underlines/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14412816D.gif" jquery1255933658781="462" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/14412816D.gif" /></a></p>
<p>49. <a target="_blank" href="http://www.alistapart.com/articles/switchymclayout">Switchy McLayout: An Adaptive Layout Technique</a></p>
<p><a target="_blank" href="http://www.alistapart.com/articles/switchymclayout"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144129az0.gif" jquery1255933658781="464" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144129az0.gif" /></a></p>
<p>50. <a target="_blank" href="http://www.scottjehl.com/v7/index.php/process/stylemap_visual_sitemap/">StyleMap: CSS+HTML Visual Sitemap</a></p>
<p><a target="_blank" href="http://www.scottjehl.com/v7/index.php/process/stylemap_visual_sitemap/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144130kyb.gif" jquery1255933658781="466" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144130kyb.gif" /></a></p>
<p>51. <a target="_blank" href="http://www.devlounge.net/articles/custom-reading-width-beta">Custom Reading Width</a></p>
<p><a target="_blank" href="http://www.devlounge.net/articles/custom-reading-width-beta"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144130yVP.gif" jquery1255933658781="468" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144130yVP.gif" /></a></p>
<p>52. <a target="_blank" href="http://www.bioneural.net/2006/04/01/create-a-valid-css-alert-message/">CSS Alert Message</a></p>
<p><a target="_blank" href="http://www.bioneural.net/2006/04/01/create-a-valid-css-alert-message/"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144131xQo.gif" jquery1255933658781="470" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144131xQo.gif" /></a></p>
<p>53. <a target="_blank" href="http://24ways.org/2006/css-production-notes">CSS Production Notes</a></p>
<p><a target="_blank" href="http://24ways.org/2006/css-production-notes"><img style="display: inline; margin-left: 4em" height="170" alt="CSS-Technique" width="485" loaded="true" original="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144132OZl.gif" jquery1255933658781="472" oldblock="inline" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/144132OZl.gif" /></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/usefull-css-techniques-for-designers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Choose Color Schemes in Web Design by Different Methods</title>
		<link>http://www.cosmos-blog.com/choose-color-schemes-in-web-design-by-different-methods</link>
		<comments>http://www.cosmos-blog.com/choose-color-schemes-in-web-design-by-different-methods#comments</comments>
		<pubDate>Mon, 05 Oct 2009 07:30:55 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Schemes]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=1379</guid>
		<description><![CDATA[One of the most challenging aspects of design for many web designers is color selection. The color scheme of a site can have a huge impact on the overall look of the site, and it will have an impact on visitors as well. There are a number of different methods that can be used for [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>One of the most challenging aspects of design for many web designers is color selection. The color scheme of a site can have a huge impact on the overall look of the site, and it will have an impact on visitors as well. There are a number of different methods that can be used for finding the right color scheme for a particular project, and in this post we will look at several of those methods. Throughout the post you will find links to helpful resources that you may appreciate.</p>
<h3>Getting <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/color" title="View all posts in Color" target="_blank">Color</a></span>s from Existing Marketing Materials</h3>
<p>In many situations the client will already have an established color scheme from an existing website or from other marketing materials. In some cases they may want a change, but frequently you will need to work from the established color scheme. Sometimes making slight changes to the shades of colors but sticking with the same basic color scheme can make an impact, and combined with a fresh design of the website it can help to give the company some added interest to their identity.</p>
<p>In situations where you are not working with a client that has an established color scheme, here are some methods that you can try for finding the right one on your own.</p>
<h3>Online <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/color" title="View all posts in Color" target="_blank">Color</a></span> Palette Resources</h3>
<p>There are a number of websites and online tools available for selecting color palettes. Many of these sites allow users to upload color palettes that they have put together, and the rest of us benefit by being able to browse through those that have been uploaded. Most of these sites allow you to search or sort the color schemes by a particular hue or by keyword, which can be helpful if you have one color that you want to use but you are looking for others to use with it.</p>
<p>Here is a quick listing of some of the best places to find color palettes.</p>
<p><strong><a target="_blank" href="http://kuler.adobe.com/">Adobe Kuler</a></strong></p>
<p><a target="_blank" href="http://kuler.adobe.com/"><img class="alignnone" height="293" alt="Adobe Kuler" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153055uNn.jpg" /></a></p>
<p><strong><a target="_blank" href="http://www.colourlovers.com/">COLOURlovers</a></strong></p>
<p><a target="_blank" href="http://www.colourlovers.com/"><img class="alignnone" height="307" alt="COLOURlovers" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153055wRx.jpg" /></a></p>
<p><strong><a target="_blank" href="http://www.colorschemer.com/schemes/">ColorSchemer</a></strong></p>
<p><a target="_blank" href="http://www.colorschemer.com/schemes/"><img class="alignnone" height="376" alt="ColorSchemer" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1530560Gy.jpg" /></a></p>
<p><strong><a target="_blank" href="http://www.colorotate.org/">ColoRotate</a></strong></p>
<p><a target="_blank" href="http://www.colorotate.org/"><img class="alignnone" height="373" alt="ColoRotate" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153056b05.jpg" /></a></p>
<p>Others:</p>
<ul>
<li><a target="_blank" href="http://www.colorcombos.com/">ColorCombos.com</a></li>
<li><a target="_blank" href="http://www.colr.org/">Colr.org</a></li>
</ul>
<p>Other online tools exist for helping you to put your own color palette together. Here are some of the best.</p>
<p><strong><a target="_blank" href="http://www.colourlovers.com/copaso">Copaso</a></strong></p>
<p><a target="_blank" href="http://www.colourlovers.com/copaso"><img class="alignnone" height="315" alt="Copaso" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153057QpM.jpg" /></a></p>
<p><strong><a target="_blank" href="http://colorschemedesigner.com/">Color Scheme Designer</a></strong></p>
<p><a target="_blank" href="http://colorschemedesigner.com/"><img class="alignnone" height="312" alt="Color Scheme  Designer" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153057hxa.jpg" /></a></p>
<p><strong><a target="_blank" href="http://aviary.com/tools/toucan#">Toucan</a></strong></p>
<p><a target="_blank" href="http://aviary.com/tools/toucan#"><img class="alignnone" height="368" alt="Toucan" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153058k9a.jpg" /></a></p>
<p><strong><a target="_blank" href="http://www.colormunki.com/">ColorMunki</a></strong></p>
<p><a target="_blank" href="http://www.colormunki.com/"><img class="alignnone" height="336" alt="ColorMunki" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153058XMY.jpg" /></a></p>
<p><strong><a target="_blank" href="http://www.colorsontheweb.com/colorwizard.asp">The Color Wizard</a></strong></p>
<p><a target="_blank" href="http://www.colorsontheweb.com/colorwizard.asp"><img class="alignnone" height="389" alt="The Color  Wizard" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153058SJA.jpg" /></a></p>
<p><strong><a target="_blank" href="http://colorexplorer.com/default.aspx">Color Explorer</a></strong></p>
<p><a target="_blank" href="http://colorexplorer.com/default.aspx"><img class="alignnone" height="353" alt="Color  Explorer" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1530591j5.jpg" /></a></p>
<h3>Taking <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/color" title="View all posts in Color" target="_blank">Color</a></span>s from Photographs</h3>
<p>Photographs are a great source of color inspiration. You can easily and quickly browse through photos either of your own or random photos from sites like <a target="_blank" href="http://flickr.com/">Flickr</a> and <a target="_blank" href="http://deviantart.com/">deviantART</a>. When you find one that includes a beautiful color scheme, you can upload it to one of several different online tools that will help you to determine the specific colors that are used, providing the&nbsp;hex value&nbsp;so that you can use them in your design work.</p>
<p>Here are some of the best resources of this kind.</p>
<p><strong><a target="_blank" href="http://colorsuckr.com/">ColorSuckr</a></strong></p>
<p><a target="_blank" href="http://colorsuckr.com/"><img class="alignnone" height="352" alt="ColorSuckr" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1530590Fi.jpg" /></a></p>
<p><strong><a target="_blank" href="http://pictaculous.com/">Pictaculous</a></strong></p>
<p><a target="_blank" href="http://pictaculous.com/"><img class="alignnone" height="358" alt="Pictaculous" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1531006Z7.jpg" /></a></p>
<p><strong><a target="_blank" href="http://whatsitscolor.com/">What&rsquo;s Its Color?</a></strong></p>
<p><a target="_blank" href="http://whatsitscolor.com/"><img class="alignnone" height="352" alt="What's Its Color?" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153100FsM.jpg" /></a></p>
<p>Others:</p>
<ul>
<li><a target="_blank" href="http://jrm.cc/color-palette-generator/">Color Palette Generator from jrm.cc</a></li>
<li><a target="_blank" href="http://bighugelabs.com/colors.php">Palette Generator from Big Huge Labs</a></li>
<li><a target="_blank" href="http://www.degraeve.com/color-palette/">Color Palette Generator from DeGraeve.com</a></li>
</ul>
<p>At <a target="_blank" href="http://www.from-the-couch.com/">From the Couch</a> David Perel has a nice video tutorial where he goes over his process for <a target="_blank" href="http://www.from-the-couch.com/post.cfm/title/picking-colors-for-your-design">choosing colors from a photograph</a>. This is a method that can easily be applied by designers with impressive results.</p>
<p><a target="_blank" href="http://www.from-the-couch.com/post.cfm/title/picking-colors-for-your-design"><img class="alignnone" height="327" alt="From the Couch" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153101XQs.jpg" /></a></p>
<p>Design and development blog <a target="_blank" href="http://buildinternet.com/">Build Internet</a> has a series of posts that showcase color schemes from Photographs. Check out their <a target="_blank" href="http://buildinternet.com/category/motivation/">Motivation category</a> to find the color scheme posts.</p>
<p><a target="_blank" href="http://buildinternet.com/category/motivation/"><img class="alignnone" height="137" alt="Build  Internet" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/1531013r7.jpg" /></a></p>
<h3>Taking Colors from Magazines and Other Printed Materials</h3>
<p>Online resources aren&rsquo;t the only place to find color schemes. Magazines, books, flyers, posters, brochures, cards and any other type of printed material can be another source of color inspiration. You can either find a scheme that you like and try to come close just by eyeballing it, or you can scan it in and take the colors directly from the scan in <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/photoshop" title="Photoshop">Photoshop</a></span> or another program.</p>
<h3>Browsing <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/web" title="View all posts in Web" target="_blank">Web</a></span> Design Galleries</h3>
<p>One of the best ways to find color schemes that work well for the web is to browse through design galleries. As you do, you will come across some color schemes that you really like and it may give you some ideas for your own work. Of course, what is good for one site may not work very well for another, so it is a good idea to keep your particular project in mind so you can find some colors that will work well for your situation.</p>
<p>You can search around and take one color from a few different websites, or find a scheme that you like and work with <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/photoshop" title="Photoshop">Photoshop</a></span> to find a similar color scheme that will work for you but will avoid copying the colors of the other site. One of the downsides to this approach is that you can wind up doing more copying than you intend, so be careful to make your scheme unique even if it is inspired by other sites.</p>
<p><a target="_blank" href="http://foliofocus.com/"><img class="alignnone" height="316" alt="Folio Focus" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153102yWE.jpg" /></a></p>
<p><a target="_blank" href="http://redalt.com/Tools/I+Like+Your+Colors">I Like Your Colors</a> is an online tool that allows you to enter a URL, and it will give you the hex value of the colors in use.</p>
<p><a target="_blank" href="http://redalt.com/Tools/I+Like+Your+Colors"><img class="alignnone" height="382" alt="I Like Your Colors" width="515" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/10/153102J9d.jpg" /></a></p>
<h3>Based on Psychology of Colors</h3>
<p>One of the factors that should be considered when choosing a color scheme is the psychology of color. There is a great deal of research that has been done over the years to indicate meanings and messages that are associated with various colors. In many cases this will vary from one culture to the next, so be sure that you are paying attention to information that is relevant to your client and their audience.</p>
<p>Here is a list of some online resources and articles regarding the psychology of color.</p>
<ul>
<li><a target="_blank" href="http://www.2createawebsite.com/design/color-psychology.html">Color Psychology in Online Marketing</a></li>
<li><a target="_blank" href="http://www.color-wheel-pro.com/color-meaning.html">Color Wheel Pro: See Color Theory in Action</a></li>
<li><a target="_blank" href="http://www.sibagraphics.com/colour.php">The Meaning of Colours</a></li>
<li><a target="_blank" href="http://www.colormatters.com/market_whycolor.html">Why Color Matter</a></li>
<li><a target="_blank" href="http://www.infoplease.com/spot/colors1.html">Color Psychology</a></li>
<li><a target="_blank" href="http://en.wikipedia.org/wiki/Color_symbolism_and_psychology">Color Symbolism and Psychology (from Wikipedia)</a></li>
</ul>
<h3>Nature</h3>
<p>Color is everywhere in nature. Step outside, look around, and you are bound to find some inspiring color schemes. Plants, animals, sunsets, color schemes can be found from just about anything in nature. Of course, getting the exact colors and shades isn&rsquo;t as simple as when you are working with a photograph (although you can always take a picture)&nbsp;or an inspirational website, you can still get many ideas simply from observing nature and the colors that appear.</p>
<h3>What&rsquo;s Your Approach to Choosing Colors?</h3>
<p>If you have a method that works well for you, please share in the comments.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/choose-color-schemes-in-web-design-by-different-methods/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is Robots.txt File, Creating and Using Robots.txt</title>
		<link>http://www.cosmos-blog.com/what-is-robots-txt-file-creating-and-using-robots-txt</link>
		<comments>http://www.cosmos-blog.com/what-is-robots-txt-file-creating-and-using-robots-txt#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:50:59 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Robots.txt]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/what-is-robots-txt-file-creating-and-using-robots-txt</guid>
		<description><![CDATA[About Robots.txt file It is great when search engines frequently visit your site and index your content but often there are cases when indexing parts of your online content is not what you want. This can be achieved by creating a simple text file on the root path of your server and naming it to [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><h2 style="font-size: 12pt">About <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/robots-txt" title="View all posts in Robots.txt" target="_blank">Robots.txt</a></span> file</h2>
<p>It is great when search engines frequently visit your site and index your content but often there are cases when indexing parts of your online content is not what you want. This can be achieved by creating a simple text file on the root path of your server and naming it to exactly <strong>robots.txt</strong>. So, in other words, a <strong>robots.txt</strong> is a file placed on your server to tell the various search engine spiders not to crawl or index certain sections or pages of your site. You can use it to prevent indexing totally, prevent certain areas of your site from being indexes or to issue individual indexing instructions to specific search engines.</p>
<p>One thing to note down here is that the file <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/robots-txt" title="View all posts in Robots.txt" target="_blank">Robots.txt</a></span> is by no means mandatory for search engines but generally search engines obey what they are asked not to do.</p>
<h3 style="font-size: 12pt; color: #539200">How and where to create it?</h3>
<p>The file itself is a simple text file, which can be created in Notepad or whatever is your favorite text editor. It needs to be saved to the root directory of your site, which is the directory where your home page or index page is. Misspelling is obvious, so be sure to name it correctly as &quot;Robots.txt&quot; and not &quot;Robot.txt&quot;.</p>
<h3 style="font-size: 12pt; color: #539200">Structure of Robots.txt file</h3>
<p>The structure of a robots.txt is pretty simple (and barely flexible) &ndash; it is an endless list of user agents and disallowed files and directories. Basically, the syntax is as follows:</p>
<p><code style="color: #5a83ba">User-Agent: [Spider or Bot Name]</code><br />
<code style="color: #5a83ba">Disallow: [Directory or Specific <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/file" title="View all posts in File" target="_blank">File</a></span> Name]</code></p>
<p>User-agent: are search engines&#8217; crawlers or bots and disallow: means the list of files and directories to be excluded from indexing. Also if you want to include comment lines &ndash; just put the # sign at the beginning of the line:<br />
<code style="color: #5a83ba"># All user agents are disallowed to index the secure directory.</code><br />
<code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /secure/ </code></p>
<h3 style="font-size: 12pt; color: #539200">Examples of Usage</h3>
<p>A few examples will make it clearer to how to properly write contents in robots.txt file.</p>
<h4>Exclude all robots from the entire web site</h4>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: / </code></p>
<h4>Allow all robots from the entire web site</h4>
<p>The only difference from above is to omit the trailing &#8216;/&#8217; in Disallow section. Alternatively you can either create an empty robots.txt file or don&#8217;t create any.</p>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: </code></p>
<h4>Exclude a part of your web site</h4>
<p>e.g. if you wish to exclude some directories (not all), then you may use the following syntax.</p>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /cgi-bin/</code><br />
<code style="color: #5a83ba">Disallow: /private/</code><br />
<code style="color: #5a83ba">Disallow: /secure/</code><br />
<code style="color: #5a83ba">Disallow: /temp/</code></p>
<h4>Exclude a single bot from entire web site</h4>
<p><code style="color: #5a83ba">User-agent: Slurp</code> <br />
<code style="color: #5a83ba">Disallow: /</code></p>
<h4>Allow a single bot</h4>
<p><code style="color: #5a83ba">User-agent: Googlebot</code> <br />
<code style="color: #5a83ba">Disallow: </code></p>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /</code></p>
<h4>Exclude a file from an Individual Search Engine</h4>
<p>e.g you want to exclude your mydata.htm file that is placed under &#8216;secure&#8217; directory from Google. (the name of Google bot that indexes pages is Googlebot)</p>
<p><code style="color: #5a83ba">User-agent: Googlebot</code> <br />
<code style="color: #5a83ba">Disallow: /secure/mydata.htm </code></p>
<h4>Exclude a file from all Search Engines</h4>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /secure/mydata.htm </code></p>
<h3 style="font-size: 12pt; color: #539200">Handling Complex Situations</h3>
<p>Also you can combine multiple command one after another to handle complex situations. Let&#8217;s take a bit complicated example in step by step manner.</p>
<p>(1) First you would ban all search engines from the directories you do not want indexed at all:</p>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /cgi-bin/</code><br />
<code style="color: #5a83ba">Disallow: /private/</code><br />
<code style="color: #5a83ba">Disallow: /secure/</code><br />
<code style="color: #5a83ba">Disallow: /temp/</code></p>
<p>(2) Next, suppose you want to exclude Yahoo from the entire web site:</p>
<p><code style="color: #5a83ba">User-agent: Slurp</code> <br />
<code style="color: #5a83ba">Disallow: /</code></p>
<p>(3) Further, if you want to exclude Google from indexing the images from your web site:</p>
<p><code style="color: #5a83ba">User-agent: Googlebot-Image</code> <br />
<code style="color: #5a83ba">Disallow: /Images/</code><br />
<code style="color: #5a83ba">Disallow: /Public/Images/</code></p>
<p>(4) Again, if you want to exclude certain files from all spiders:</p>
<p><code style="color: #5a83ba">User-agent: *</code> <br />
<code style="color: #5a83ba">Disallow: /private/mybio.htm</code></p>
<p>Fore further information about robots.txt file you can visit <a href="http://www.robotstxt.org/wc/robots.html" target="_blank" rel="nofollow">The Web Robots Page</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/what-is-robots-txt-file-creating-and-using-robots-txt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Engine Optimization (SEO)</title>
		<link>http://www.cosmos-blog.com/search-engine-optimization-seo</link>
		<comments>http://www.cosmos-blog.com/search-engine-optimization-seo#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:47:49 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/search-engine-optimization-seo</guid>
		<description><![CDATA[Search Engine Optimization is the process or practice of designing web pages so that they rank as high as possible in search results from search engines. Typically, the earlier (or higher) a site appears in the search results list, the more visitors it will receive from the search engine. Optimizing a website primarily involves editing [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>Search Engine <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/optimization" title="View all posts in Optimization" target="_blank">Optimization</a></span> is the process or practice of designing web pages so that they rank as high as possible in search results from <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/search-engine" title="View all posts in search engine" target="_blank">search engine</a></span>s. Typically, the earlier (or higher) a site appears in the search results list, the more visitors it will receive from the <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/search-engine" title="View all posts in search engine" target="_blank">search engine</a></span>.</p>
<p>Optimizing a website primarily involves editing its content and HTML and associated coding to both increase its relevance to specific keywords and to remove the barriers to the indexing activities of search engines.</p>
<h3 style="font-size: 12pt; color: #009900"><font color="#0000ff">Steps to Follow for Better <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/seo" title="View all posts in SEO" target="_blank">SEO</a></span></font></h3>
<p>A partial list of some important steps that should be followed for better search engine optimization is given below</p>
<ul>
<li>Try to get an old domain name. Also make sure that it should not be in blacklist during purchase or anytime in the past.</li>
<li>Design your site by keeping in mind of your target audience and not the search engines.</li>
<li>Research extensively to choose your main target keywords. Any mistake or ignorance may lead to unrelated traffic that further may become the major cause of high bounce rate.</li>
<li>Design and categorize your site architecture and navigation based on your keyword research so that people can find their interesting stuff easily.</li>
<li>Carefully build the page title and other important meta tags information by incorporating your target keywords into them.</li>
<li>Make titles and contents of each page unique. Duplicacy of contents or pages may result in lower <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/seo" title="View all posts in SEO" target="_blank">SEO</a></span> ranking.</li>
<li>Validate the contents of your website against industry standards (e.g. W3C validation). Also be sure that there should not be any broken or dead links present on your site.</li>
<li>Make the navigation of your site crawler friendly so that the search spiders can travel and index them easily.</li>
<li>Create a sitemap so that visitors and search engines can visit different parts of your website in an easy way.</li>
</ul>
<p>While the above described steps are not a complete list but may be considered helpful in understanding the basics of SEO. You may consider hiring a SEO specialist to make your site well optimized from SEO point of view.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/search-engine-optimization-seo/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to 301 Redirect a Web Page &#8211; 301 Redirect Methods</title>
		<link>http://www.cosmos-blog.com/how-to-301-redirect-a-web-page-301-redirect-methods</link>
		<comments>http://www.cosmos-blog.com/how-to-301-redirect-a-web-page-301-redirect-methods#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:46:04 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[301 Redirect]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Web Page]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=787</guid>
		<description><![CDATA[What is 301 Redirection? 301 redirect is the most efficient and search engine friendly (SEO) method for webpage redirection. One of the biggest advantage is that it also pass on the PageRank value and hence preserves the current search engine rankings for that particular page. It is the best and safest way in case of [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><h2 style="font-size: 12pt">What is <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/301" title="View all posts in 301" target="_blank">301</a></span> <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/redirect" title="View all posts in Redirect" target="_blank">Redirect</a></span>ion?</h2>
<p><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/301" title="View all posts in 301" target="_blank">301</a></span> redirect is the most efficient and search engine friendly (SEO) method for webpage redirection. One of the biggest advantage is that it also pass on the PageRank value and hence preserves the current search engine rankings for that particular page. It is the best and safest way in case of renaming or moving files to other location. The code &quot;301&quot; is normally interpreted as &quot;moved permanently&quot;.</p>
<p>Use this free <strong><a title="URL Redirection Checker" target="_blank" href="http://www.webtoolhub.com/tn561352-url-redirection-checker.aspx"><font color="#0046cf">301 URL <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/redirect" title="View all posts in Redirect" target="_blank">Redirect</a></span>ion Checker</font></a></strong> tool to check the redirection of a webpage.</p>
<h3 style="font-size: 12pt; color: #009900; padding-top: 10px">Benefits of <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/redirect" title="View all posts in Redirect" target="_blank">Redirect</a></span>ion</h3>
<p>A web page may be redirected for several reasons:</p>
<ul>
<li>A web site might need to change its domain name.</li>
<li>An author might move his or her pages to a new domain.</li>
<li>Two web sites might merge.</li>
</ul>
<p>With URL redirects, incoming links to an outdated URL can be sent to the correct location. These links might be from other sites that have not realized that there is a change or from bookmarks/favorites that users have saved in their browsers.</p>
<h3 style="font-size: 12pt; color: #009900">Different Methods to Implement URL Redirection</h3>
<p>Following are some common ways to do 301 redirection in different languages. The example are taken from internet, so make sure if all the things work well before finally implementing them.</p>
<p><strong>Redirect through .htaccess file</strong><br />
<code style="margin-left: 10px; color: #369">Options +FollowSymLinks</code><br />
<code style="margin-left: 10px; color: #369">RewriteEngine on</code><br />
<code style="margin-left: 10px; color: #369">RewriteCond %{HTTP_HOST} ^example.com</code><br />
<code style="margin-left: 10px; color: #369">RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]</code> <br />
-or- <br />
<code style="margin-left: 10px; color: #369">Options +FollowSymLinks</code><br />
<code style="margin-left: 10px; color: #369">RewriteEngine on</code><br />
<code style="margin-left: 10px; color: #369">RewriteRule (.*) http://www.example.com/$1 [R=301,L]</code></p>
<p><strong>PHP Redirect</strong><br />
<code style="margin-left: 10px; color: #369">&lt;?</code><br />
<code style="margin-left: 10px; color: #369">Header( &quot;HTTP/1.1 301 Moved Permanently&quot; );</code><br />
<code style="margin-left: 10px; color: #369">Header( &quot;Location: http://www.newdomain.com&quot; );</code><br />
<code style="margin-left: 10px; color: #369">?&gt;</code></p>
<p><strong>CGI PERL Redirect</strong><br />
<code style="margin-left: 10px; color: #369">$q = new CGI;</code><br />
<code style="margin-left: 10px; color: #369">print $q-&gt;redirect(&quot;http://www.newdomain.com/&quot;);</code></p>
<p><strong>Ruby on Rails Redirect</strong><br />
<code style="margin-left: 10px; color: #369">def old_action</code><br />
<code style="margin-left: 10px; color: #369">headers[&quot;Status&quot;] = &quot;301 Moved Permanently&quot;</code><br />
<code style="margin-left: 10px; color: #369">redirect_to &quot;http://www.newdomain.com/&quot;</code><br />
<code style="margin-left: 10px; color: #369">end</code></p>
<p><strong>Java Redirect</strong><br />
<code style="margin-left: 10px; color: #369">&lt;%</code><br />
<code style="margin-left: 10px; color: #369">response.setStatus(301);</code><br />
<code style="margin-left: 10px; color: #369">response.setHeader( &quot;Location&quot;, &quot;http://www.newdomain.com/&quot; );</code><br />
<code style="margin-left: 10px; color: #369">response.setHeader( &quot;Connection&quot;, &quot;close&quot; );</code><br />
<code style="margin-left: 10px; color: #369">%&gt;</code></p>
<p><strong>ColdFusion Redirect</strong><br />
<code style="margin-left: 10px; color: #369">&lt;.cfheader statuscode=&quot;301&quot; statustext=&quot;Moved permanently&quot;&gt;</code><br />
<code style="margin-left: 10px; color: #369">&lt;.cfheader name=&quot;Location&quot; value=&quot;http://www.newdomain.com&quot;&gt;</code></p>
<p><strong>ASP Redirect</strong><br />
<code style="margin-left: 10px; color: #369">&lt;%</code><br />
<code style="margin-left: 10px; color: #369">Response.Status=&quot;301 Moved Permanently&quot;</code><br />
<code style="margin-left: 10px; color: #369">Response.AddHeader &quot;Location&quot;,&quot;http://www.newdomain.com/&quot;</code><br />
<code style="margin-left: 10px; color: #369">%&gt; </code></p>
<p><strong>ASP .NET Redirect</strong><br />
<code style="margin-left: 10px; color: #369">&lt;script runat=&quot;server&quot;&gt;</code><br />
<code style="margin-left: 10px; color: #369">private void Page_Load(object sender, System.EventArgs e)</code><br />
<code style="margin-left: 10px; color: #369">{</code><br />
<code style="margin-left: 10px; color: #369">Response.Status = &quot;301 Moved Permanently&quot;;</code><br />
<code style="margin-left: 10px; color: #369">Response.AddHeader(&quot;Location&quot;,&quot;http://www.newdomain.com&quot;);</code><br />
<code style="margin-left: 10px; color: #369">}</code><br />
<code style="margin-left: 10px; color: #369">&lt;/script&gt;</code></p>
<p><strong>HTML Redirect (Meta Redirect)</strong><br />
To send someone to a new web page or site put this in the head section of your document:<br />
<code style="margin-left: 10px; color: #369">&lt;meta http-equiv=&quot;refresh&quot; content=&quot;5&quot;; url=http://newdomain.com/&quot;&gt;</code><br />
Here content=&quot;5&quot; means the time (e.g. 5) in second the browser should wait before redirecting to new location.</p>
<p>To check redirection of a web page, use this tool : <strong><a title="URL Redirection Checker" target="_blank" href="http://www.webtoolhub.com/tn561352-url-redirection-checker.aspx"><font color="#0046cf">301 URL Redirection Checker</font></a></strong></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/how-to-301-redirect-a-web-page-301-redirect-methods/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Status Codes, Response Code or Code Status</title>
		<link>http://www.cosmos-blog.com/http-status-codes-response-code-or-code-status</link>
		<comments>http://www.cosmos-blog.com/http-status-codes-response-code-or-code-status#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:42:44 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Codes]]></category>
		<category><![CDATA[HTTP]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=785</guid>
		<description><![CDATA[HTTP, Hypertext Transfer Protocol, is the method by which clients and servers communicate. When someone clicks a link, types in a URL or submits out a form, their browser sends a request to a server for information. It might be asking for a page, or sending data, but either way, that is called an HTTP [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/http" title="View all posts in HTTP" target="_blank">HTTP</a></span>, Hypertext Transfer Protocol, is the method by which clients and servers communicate. When someone clicks a link, types in a URL or submits out a form, their browser sends a request to a server for information. It might be asking for a page, or sending data, but either way, that is called an <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/http" title="View all posts in HTTP" target="_blank">HTTP</a></span> Request. When a server receives that request, it sends back an <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/http" title="View all posts in HTTP" target="_blank">HTTP</a></span> Response, with information for the client. The Response stream also contains a code number usually known as status code or response code, which tells the client in short about what server has returned. There are fairly a large number of status codes sent by servers, and the following is a list of the current ones in HTTP 1.1, along with an explanation of their meanings.</p>
<h2 style="font-size: 12pt; text-decoration: underline">Informational</h2>
<p><em>This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code.</em></p>
<p><strong>100 &#8211; Continue</strong><br />
The status code 100 is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server. The client should continue by sending the remainder of the request.</p>
<p><strong>101 &#8211; Switching Protocols</strong><br />
This means that the server is changing to the protocol it defines in the <q>Upgrade</q> header it returns to the client. The protocol should be switched only when it is advantageous to do so. e.g, switching to a newer version of HTTP is advantageous over older versions.</p>
<h2 style="font-size: 12pt; text-decoration: underline">Successful</h2>
<p><em>This class of status code indicates that the client&#8217;s request was successfully received, understood, and accepted.</em></p>
<p><strong>200 &#8211; OK</strong><br />
This is by far the most common returned. It means, simply, that the request was received and understood and is being processed. Also the information returned with the response is dependent on the method used in the request, for example:</p>
<ul>
<li>GET an entity corresponding to the requested resource is sent in the response;</li>
<li>HEAD the entity-header fields corresponding to the requested resource are sent in the response without any message-body;</li>
<li>POST an entity describing or containing the result of the action;</li>
<li>TRACE an entity containing the request message as received by the end server.</li>
</ul>
<p><strong>201 &#8211; Created</strong> <br />
A 201 status code means that a request was successful and as a result, a resource has been created. A 201 response may contain an ETag response header field indicating the current value of the entity tag for the requested variant just created.</p>
<p><strong>202 &#8211; Accepted</strong><br />
It indicates that server has received and understood the request, and that it has been accepted for processing.The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.</p>
<p><strong>203 &#8211; Non-Authoritative Information</strong> <br />
It means that the request was received and understood, and that information sent back about the response is from a third party, rather than the original server.</p>
<p><strong>204 &#8211; No Content</strong> <br />
This means that the request was received and understood, but that there is no need to send any data back.</p>
<p><strong>205 &#8211; Reset Content</strong> <br />
The 205 status code is a request from the server to the client to reset the document from which the original request was sent.</p>
<p><strong>206 &#8211; Partial Content</strong> <br />
A status code of 206 is a response to a request for part of a document. This is used by advanced caching tools, when a user agent requests only a small part of a page, and just that section is returned.</p>
<h2 style="font-size: 12pt; text-decoration: underline">Redirection</h2>
<p><em>This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request.</em></p>
<p><strong>300 &#8211; Multiple Choices</strong> <br />
This indicates that a resource has moved. The response will also include a list of locations from which the user agent can select the most appropriate.</p>
<p><strong>301 &#8211; Moved Permanently</strong> <br />
A status code of 301 tells a client that the resource they asked for has permanently moved to a new location. The response should also include this location. It tells the client to use the new URL the next time it wants to fetch the same resource. This response is cacheable unless indicated otherwise.</p>
<p><strong>302 &#8211; Found</strong> <br />
A status code of 302 tells a client that the resource they asked for has temporarily moved to a new location. The response should also include this location. It tells the client that it should carry on using the same URL to access this resource.</p>
<p><strong>303 &#8211; See Other</strong> <br />
It indicates that the response to the request can be found at the specified URL, and should be retrieved from there. It does not mean that something has moved &#8211; it is simply specifying the address at which the response to the request can be found.</p>
<p><strong>304 &#8211; Not Modified</strong> <br />
This is sent in response to a request that asked for the document only if it was newer than the one the client already had. Normally, when a document is cached, the date it was cached is stored. The next time the document is viewed, the client asks the server if the document has changed. If not, the client just reloads the document from the cache.</p>
<p><strong>305 &#8211; Use Proxy</strong> <br />
It tells the client that the requested resource has to be reached through a proxy, which will be specified in the response.</p>
<p><strong>307 &#8211; Temporary Redirect</strong> <br />
307 is the status code that is sent when a document is temporarily available at a different URL, which is also returned. There is very little difference between a 302 status code and a 307 status code. 307 was created as another, less ambiguous, version of the 302 status code.</p>
<h2 style="font-size: 12pt; text-decoration: underline">Client Error</h2>
<p>&nbsp;</p>
<p><em>The 4xx class of status code is intended for cases in which the client seems to have erred.</em></p>
<p><strong>400 &#8211; Bad Request</strong> <br />
It indicates that the server did not understand the request due to bad syntax.</p>
<p><strong>401 &#8211; Unauthorized</strong> <br />
This indicates that before a resource can be accessed, the client must be authorised by the server.</p>
<p><strong>402 &#8211; Payment Required</strong> <br />
The 402 status code is not currently in use, being listed as &quot;reserved for future use&quot;.</p>
<p><strong>403 &#8211; Forbidden</strong> <br />
It indicates that the client cannot access the requested resource. That might mean that the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.</p>
<p><strong>404 &#8211; Not Found</strong> <br />
The best known of them all, the 404 status code indicates that the requested resource was not found at the URL given, and the server has no idea how long for.</p>
<p><strong>405 &#8211; Method Not Allowed</strong> <br />
A 405 status code is returned when the client has tried to use a request method that the server does not allow. Request methods that are allowed should be sent with the response (common request methods are POST and GET).</p>
<p><strong>406 &#8211; Not Acceptable</strong> <br />
It means that, although the server understood and processed the request, the response is of a form the client cannot understand. A client sends, as part of a request, headers indicating what types of data it can use, and a 406 error is returned when the response is of a type not i that list.</p>
<p><strong>407 &#8211; Proxy Authentication Required</strong> <br />
It is very similar to the 401 status code, and means that the client must be authorised by the proxy before the request can proceed.</p>
<p><strong>408 &#8211; Request Timeout</strong> <br />
This means that the client did not produce a request quickly enough. A server is set to only wait a certain amount of time for responses from clients, and a 408 status code indicates that time has passed.</p>
<p><strong>409 &#8211; Conflict</strong> <br />
It indicates that the server was unable to complete the request, often because a file would need to be editted, created or deleted, and that file cannot be editted, created or deleted.</p>
<p><strong>410 &#8211; Gone</strong> <br />
A 410 status code is the 404&#8242;s lesser known cousin. It indicates that a resource has permanently gone (a 404 status code gives no indication if a resource has gine permanently or temporarily), and no new address is known for it.</p>
<p><strong>411 &#8211; Length Required</strong> <br />
The 411 status code occurs when a server refuses to process a request because a content length was not specified.</p>
<p><strong>412 &#8211; Precondition Failed</strong> <br />
A 412 status code indicates that one of the conditions the request was made under has failed.</p>
<p><strong>413 &#8211; Request Entity Too Large</strong> <br />
This status code indicates that the request was larger than the server is able to handle, either due to physical constraints or to settings.</p>
<p><strong>414 &#8211; Request-URI Too Long</strong> <br />
The 414 status code indicates the the URL requested by the client was longer than it can process.</p>
<p><strong>415 &#8211; Unsupported Media Type</strong> <br />
A 415 status code is returned by a server to indicate that part of the request was in an unsupported format.</p>
<p><strong>416 &#8211; Requested Range Not Satisfiable</strong> <br />
A 416 status code indicates that the server was unable to fulfill the request.</p>
<p><strong>417 &#8211; Expectation Failed</strong> <br />
The 417 status code means that the server was unable to properly complete the request.</p>
<h2 style="font-size: 12pt; text-decoration: underline">Server Error</h2>
<p><em>Response status codes beginning with the digit &quot;5&quot; indicate cases in which the server is aware that it has erred or is incapable of performing the request. </em></p>
<p><strong>500 &#8211; Internal Server Error</strong> <br />
This indicates that the server encountered something it didn&#8217;t expect and was unable to complete the request.</p>
<p><strong>501 &#8211; Not Implemented</strong> <br />
It indicates that the server does not support all that is needed for the request to be completed.</p>
<p><strong>502 &#8211; Bad Gateway</strong> <br />
A 502 status code indicates that a server, while acting as a proxy, received a response from a server further upstream that it judged invalid.</p>
<p><strong>503 &#8211; Service Unavailable</strong> <br />
A 503 status code is most often seen on extremely busy servers, and it indicates that the server was unable to complete the request due to a server overload.</p>
<p><strong>504 &#8211; Gateway Timeout</strong> <br />
A 504 status code is returned when a server acting as a proxy has waited too long for a response from a server further upstream.</p>
<p><strong>505 &#8211; HTTP Version Not Supported</strong> <br />
A 505 status code is returned when the HTTP version indicated in the request is no supported. The response should indicate which HTTP versions are supported.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/http-status-codes-response-code-or-code-status/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase backlinks for free</title>
		<link>http://www.cosmos-blog.com/how-to-increase-backlinks-for-free</link>
		<comments>http://www.cosmos-blog.com/how-to-increase-backlinks-for-free#comments</comments>
		<pubDate>Sat, 26 Sep 2009 01:40:04 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[BackLinks]]></category>
		<category><![CDATA[search engine]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=783</guid>
		<description><![CDATA[How to increase backlinks for free]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><strong>Increasing backlinks</strong> helps in improving <strong><span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/search-engine" title="View all posts in search engine" target="_blank">search engine</a></span> optimization</strong>. This also helps in increased pagerank. The backlinks should be from quality and relevant web sites. There are many ways to increase backlinks to a website.</p>
<p><strong>What are backlinks</strong>? Backlinks are incoming links to a website. Number of backlinks is an indication of the popularity or importance of that website. Backlinks are also called inbound links or incoming links. Here are some of the ways that backlinks can be increased.</p>
<p><strong>Blog Commenting</strong> &ndash; Blog or article commenting is the most effective and easy way to increase backlinks, but it is overlooked more often than not. This also helps in increasing your pagerank. As these pages that you comment on gain their own pagerank, so will your page that links from these pages. Make sure that you do not spam people by commenting on irrelevant blogs or posting non valuable comments.</p>
<p><strong>Wikipedia</strong> &ndash; Getting a backlink from wikipedia is a reward in itself. Although the outbound links you get from wikipedia are nofollow, but google gives special attention to outbound links on wikipedia. Receiving outbound links from wikipedia are a pain, and you should have a good history before you insert your own links in the wiki.</p>
<p><strong>Article Writing</strong> &ndash; Writing original, unique and quality articles gets you in the good books of <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/search-engine" title="View all posts in search engine" target="_blank">search engine</a></span>s. Providing useful resources that help readers looking for something specific makes your article stand out from others. You can build high quality backlinks and get your pages indexed fast. Building backlinks brings you organic traffic and who doesn&#8217;t like getting traffic the organic way? There are many popular article directories like ezinearticles, eHow, articlesbase where you can post your articles for free. All these manually review the articles so these deliver high quality backlink results</p>
<p><strong>Social bookmarking</strong> &ndash; Many social bookmarking sites have emerged in the last few years and few popular ones help build you backlinks if you bookmark your pages. It helps if you have enough friends in your social bookmarking sites. You can share your pages with them, getting more exposure to your web site as well as good number of backlinks.</p>
<p><strong>Forums Participation</strong> &#8211; Find forums related to your website&#8217;s niche and post often so you will get noticed and build up trust so people will click on the link in your profile or signature and possibly link to your site from their own site or in other forums showing where they found valuable information. Most forums now put a rel=&quot;nofollow&quot; on all outgoing links so this may not benefit you other than getting some traffic.</p>
<p>Getting quality backlinks is a constant and lengthy process and can take several months to achieve the set goal. But it pays to have quality backlinks from the authority sites in the long run.</p>
<p align="center"><a target="_blank" href="http://www.webtoolhub.com/tn561345-backlink-checker.aspx"><font color="#0046cf">Check number of backlinks</font></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/how-to-increase-backlinks-for-free/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>30+ Most Wanted WordPress Tips, Tricks and Hacks</title>
		<link>http://www.cosmos-blog.com/30-most-wanted-wordpress-tips-tricks-and-hacks</link>
		<comments>http://www.cosmos-blog.com/30-most-wanted-wordpress-tips-tricks-and-hacks#comments</comments>
		<pubDate>Tue, 22 Sep 2009 09:15:22 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Wordpress Tips]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=379</guid>
		<description><![CDATA[Apple Flashy Accordion Sidebar Use the Accordion plugin in jQuery UI to create an Apple-alike WordPress sidebar. Adding Tabs to Sidebar Creating tabs on WordPress sidebar with Yahoo! UI Library Sidebar With Dynamic Contents Every blog visitor has different habits, but many tend to ignore sidebars because they are always the same. Mixing things up [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><ol>
<li>
<h4><a href="http://nettuts.com/javascript-ajax/wordpress-sidebar-turned-apple-flashy-using-jquery-ui/"><font color="#2277dd">Apple Flashy Accordion Sidebar</font></a></h4>
<p>Use the Accordion plugin in jQuery UI to create an Apple-alike <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span> sidebar.</p>
<p><a href="http://nettuts.com/javascript-ajax/wordpress-sidebar-turned-apple-flashy-using-jquery-ui/"><img height="300" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171523O5j.png" /></a></p>
</li>
<li>
<h4><a href="http://rubiqube.com/wordpress-tutorial-adding-tabs-to-your-blog-sidebar/"><font color="#2277dd">Adding Tabs to Sidebar</font></a></h4>
<p>Creating tabs on <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span> sidebar with <a href="http://developer.yahoo.com/yui/"><font color="#2277dd">Yahoo! UI Library</font></a></p>
<p><a href="http://rubiqube.com/wordpress-tutorial-adding-tabs-to-your-blog-sidebar/"><font color="#2277dd"><img height="200" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171523Cds.png" /></font></a></p>
</li>
<li>
<h4><a href="http://vandelaydesign.com/blog/wordpress/enhanced-sidebars-with-dynamic-content/"><font color="#2277dd">Sidebar With Dynamic Contents</font></a></h4>
<p>Every blog visitor has different habits, but many tend to ignore sidebars because they are always the same. Mixing things up and keeping the contents of the sidebar relevant to the post can make them a bit more likely to be noticed.</p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/tdo-mini-forms/"><font color="#2277dd">Allow Users To Submit Blog Post</font></a></h4>
<p>This plugin allows you to add highly customisable forms to your website that allows non-registered users and/or subscribers (also configurable) to submit posts.</p>
<p><a href="http://wordpress.org/extend/plugins/tdo-mini-forms/"><img height="300" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171524amB.png" /></a></p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/paginated-comments/"><font color="#2277dd">Paginated Comments</font></a></h4>
<p>Give you the ability to break your comments into a number of search engine optimized pages.</p>
<p><a href="http://wordpress.org/extend/plugins/paginated-comments/screenshots/"><img height="241" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171524UN1.png" /></a></p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/image-caption/"><font color="#2277dd">Image Caption</font></a></h4>
<p>Extracts the <code>title</code> or <code>alt</code> attribute from images within your blog post and generates a neat caption directly underneath those images. Supports custom CSS styling for captions.</p>
<p><a href="http://wordpress.org/extend/plugins/image-caption/"><img height="342" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171525PaE.png" /></a></p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/random-redirect/"><font color="#2277dd">Random Redirect</font></a></h4>
<p>Allows you to create a link to yourblog.example.com/?random which will redirect someone to a random post on your blog, in a StumbleUpon-like fashion.</p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/google-syntax-highlighter/screenshots/"><font color="#2277dd">Google Syntax Highlighter for WordPress</font></a></h4>
<p>Easily integrates the Google Syntax Highlighter by <a href="http://code.google.com/u/alex.gorbatchev"><font color="#2277dd">Alex Gorbatchev</font></a> into WordPress. Image below show how codes look like in WordPress with Google Syntax Highlighter.</p>
<p><a href="http://wordpress.org/extend/plugins/google-syntax-highlighter/screenshots/"><img height="235" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171525mUT.png" /></a></p>
</li>
<li>
<h4><a href="http://www.23systems.net/plugins/facelift-image-replacement-flir/"><font color="#2277dd">Facelift Image Replacement (FLIR) for WordPress</font></a></h4>
<p><a href="http://www.hongkiat.com/blog/facelift-image-replacement-replace-boring-text-with-any-font-types/"><font color="#2277dd">FLIR</font></a> allows you to convert text and title into images (better display quality) on the fly without hassle. Now this FLIR WordPress plugin make things even easier for bloggers.</p>
</li>
<li>
<h4><a href="http://rick.jinlabs.com/code/delicious/"><font color="#2277dd">del.icio.us for WordPress</font></a></h4>
<p>del.icio.us for WordPress displays your latest del.icio.us bookmarks in your WordPress blog.</p>
</li>
<li>
<h4><a href="http://www.techyard.net/create-your-own-popurls-in-wordpress/"><font color="#2277dd">Create Your Own PopURLs Within WordPress </font></a></h4>
<p>Like the way how PopURL display contents? Now you can create similar inside WordPress.</p>
<p><a href="http://www.techyard.net/create-your-own-popurls-in-wordpress/"><img height="291" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171525doC.png" /></a></p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/advanced-category-excluder/"><font color="#2277dd">Exclude certain categories from being displayed</font></a></h4>
<p>2 ways to hide posts from certain categories to be displayed on the blog. You can either put this code inside <a href="http://codex.wordpress.org/The_Loop"><font color="#2277dd">the loop</font></a></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;?php &nbsp;&nbsp;</span></span></li>
<li class=""><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;have_posts()&nbsp;)&nbsp;:&nbsp;query_posts(</span><span class="vars">$query_string</span><span>&nbsp;.</span><span class="string"><font color="#0000ff">&#8216;&amp;cat=-1,-2&#8242;</font></span><span>);&nbsp;</span><span class="keyword"><strong><font color="#006699">while</font></strong></span><span>&nbsp;(&nbsp;have_posts()&nbsp;)&nbsp;:&nbsp;the_post(); &nbsp;&nbsp;</span></li>
<li class="alt"><span>?&gt; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="php" style="display: none" name="code">&lt;?php
if ( have_posts() ) : query_posts($query_string .'&amp;cat=-1,-2'); while ( have_posts() ) : the_post();
?&gt;</pre>
<p>or you can use <a href="http://wordpress.org/extend/plugins/advanced-category-excluder/"><font color="#2277dd">Advanced Category Excluder</font></a>.</p>
</li>
<li>
<h4><a href="http://www.yugatech.com/blog/wordpress/wp-date-image-hack/"><font color="#2277dd">Another Date Image Hack </font></a></h4>
</li>
<li>
<p>Create a calendar view of your article post date.</p>
<p><a href="http://www.yugatech.com/blog/wordpress/wp-date-image-hack/"><img height="150" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171525wiE.png" /></a></p>
</li>
<li>
<h4><a href="http://www.wpdesigner.com/2007/06/12/styling-individual-posts-using-the_id/"><font color="#2277dd">Styling Individual Posts</font></a></h4>
<p>Styling one post a little different from the rest with the use of <code>the_ID</code>.</p>
</li>
<li>
<h4><a href="http://weblogtoolscollection.com/archives/2008/05/17/how-to-avoid-duplicate-posts/"><font color="#2277dd">How To Avoid Duplicate Posts</font></a></h4>
<p>Duplicated contents are pretty bad and they somehow affects how search engine weights your site. Here&rsquo;s how you can avoid getting duplicated contents on your blog.</p>
</li>
<li>
<h4><a href="http://www.keyframesandcode.com/code/development/php/wordpress/wordpress-template-page-redirect/"><font color="#2277dd">WordPress &lsquo;<em>Page Redirect</em>&lsquo; template</font></a></h4>
<p>This template lets you specify a single URL as the page content, then as the page loads, the template automatically redirects the page to this new location, and that includes category or any tag pages you specify.</p>
</li>
<li>
<h4><a href="http://delicious.com/help/savebuttons"><font color="#2277dd">Delicious Save Buttons</font></a></h4>
<p>Add badges that encourage people to bookmark your website or blog</p>
</li>
<li>
<h4><a href="http://www.designfloat.com/tools"><font color="#2277dd">DesignFloat Buttons, Website &amp; Blog Integration</font></a></h4>
<p>Give your website or blog visitors the option to submit your stories to Design Float and &quot;Float&quot; them</p>
<p><img height="50" alt="" width="100" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/1715261c9.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;submit_url&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;Your&nbsp;URL&nbsp;Here&#8217;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://www.designfloat.com/evb/button.php&quot;</font></span><span>&gt;&lt;/script&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type=&quot;text/javascript&quot;&gt;submit_url = 'Your URL Here';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.designfloat.com/evb/button.php&quot;&gt;&lt;/script&gt;</pre>
<p><img height="50" alt="" width="100" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526tjD.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;submit_url&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;Your&nbsp;URL&nbsp;Here&#8217;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://www.designfloat.com/evb2/button.php&quot;</font></span><span>&gt;&lt;/script&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type=&quot;text/javascript&quot;&gt;submit_url = 'Your URL Here';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.designfloat.com/evb2/button.php&quot;&gt;&lt;/script&gt;</pre>
<p><a href="http://www.designfloat.com/tools"><font color="#2277dd">Read here</font></a> for more.</p>
</li>
<li>
<h4><a href="http://www.stumbleupon.com/buttons.php?pgtype=profile"><font color="#2277dd">StumbleUpon Buttons &amp; Tools</font></a></h4>
<p>Add a Stumble It! button to your site to make it easy for your visitors to submit your content to StumbleUpon.</p>
<p><a href="http://www.stumbleupon.com/buttons.php?pgtype=profile"><img height="215" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526P6W.png" /></a></p>
</li>
<li>
<h4>Dynamic Highlight Menu</h4>
<p>This allows you to theme/style and control the <em>currently selected</em> menu tab in CSS by adding a <code>class=&quot;current&quot;</code> on it.</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;ul&nbsp;id=</span><span class="string"><font color="#0000ff">&quot;nav&quot;</font></span><span>&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&lt;li&lt;?php&nbsp;</span><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;is_home()&nbsp;||&nbsp;is_category()&nbsp;||&nbsp;is_archive()&nbsp;||&nbsp;is_search()&nbsp;||&nbsp;is_single()&nbsp;||&nbsp;is_date()&nbsp;)&nbsp;{&nbsp;</span><span class="func">echo</span><span>&nbsp;</span><span class="string"><font color="#0000ff">&#8216;&nbsp;class=&quot;current&quot;&#8217;</font></span><span>;&nbsp;}&nbsp;?&gt;&gt;&lt;a&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;#&quot;</font></span><span>&gt;Gallery&lt;/a&gt;&lt;/li&gt; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&lt;li&lt;?php&nbsp;</span><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;is_page(</span><span class="string"><font color="#0000ff">&#8216;about&#8217;</font></span><span>)&nbsp;)&nbsp;{&nbsp;</span><span class="func">echo</span><span>&nbsp;</span><span class="string"><font color="#0000ff">&#8216;&nbsp;class=&quot;current&quot;&#8217;</font></span><span>;&nbsp;}&nbsp;?&gt;&gt;&lt;a&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;#&quot;</font></span><span>&gt;About&lt;/a&gt;&lt;/li&gt; &nbsp;&nbsp;</span></li>
<li class=""><span>&nbsp;&nbsp;&lt;li&lt;?php&nbsp;</span><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;is_page(</span><span class="string"><font color="#0000ff">&#8216;submit&#8217;</font></span><span>)&nbsp;)&nbsp;{&nbsp;</span><span class="func">echo</span><span>&nbsp;</span><span class="string"><font color="#0000ff">&#8216;&nbsp;class=&quot;current&quot;&#8217;</font></span><span>;&nbsp;}&nbsp;?&gt;&gt;&lt;a&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;#&quot;</font></span><span>&gt;Submit&lt;/a&gt;&lt;/li&gt; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&lt;/ul&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="php" style="display: none" name="code">&lt;ul id=&quot;nav&quot;&gt;
  &lt;li&lt;?php if ( is_home() || is_category() || is_archive() || is_search() || is_single() || is_date() ) { echo ' class=&quot;current&quot;'; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;
  &lt;li&lt;?php if ( is_page('about') ) { echo ' class=&quot;current&quot;'; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
  &lt;li&lt;?php if ( is_page('submit') ) { echo ' class=&quot;current&quot;'; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;Submit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p class="via">Line 2:</p>
<p>If Home, or Category, or Archive, or Search or Single page is selected, <code>class=&quot;current&quot;</code> will be included in <code>&lt;li&gt;</code></p>
<p class="via">Line 3,4:</p>
<p>If Page with page slug <strong><em>about</em></strong> or <strong><em>submit</em></strong> is highlighted, <code>class=&quot;current&quot;</code> is added.</p>
<p>If you are looking at putting categories as menu tabs, here&rsquo;s how to make the menu dynamic:</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;ul&nbsp;id=</span><span class="string"><font color="#0000ff">&quot;nav&quot;</font></span><span>&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&lt;li&lt;?php&nbsp;</span><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;is_category(</span><span class="string"><font color="#0000ff">&#8216;css&#8217;</font></span><span>)&nbsp;)&nbsp;{&nbsp;</span><span class="func">echo</span><span>&nbsp;</span><span class="string"><font color="#0000ff">&#8216;&nbsp;class=&quot;current&quot;&#8217;</font></span><span>;&nbsp;}&nbsp;?&gt;&gt;&lt;a&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;#&quot;</font></span><span>&gt;CSS&lt;/a&gt;&lt;/li&gt; &nbsp;&nbsp;</span></li>
<li class="alt"><span>&nbsp;&nbsp;&lt;li&lt;?php&nbsp;</span><span class="keyword"><strong><font color="#006699">if</font></strong></span><span>&nbsp;(&nbsp;is_category(showcase)&nbsp;)&nbsp;{&nbsp;</span><span class="func">echo</span><span>&nbsp;</span><span class="string"><font color="#0000ff">&#8216;&nbsp;class=&quot;current&quot;&#8217;</font></span><span>;&nbsp;}&nbsp;?&gt;&gt;&lt;a&nbsp;href=</span><span class="string"><font color="#0000ff">&quot;#&quot;</font></span><span>&gt;Showcase&lt;/a&gt;&lt;/li&gt; &nbsp;&nbsp;</span></li>
<li class=""><span>&lt;/ul&gt;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="php" style="display: none" name="code">&lt;ul id=&quot;nav&quot;&gt;
  &lt;li&lt;?php if ( is_category('css') ) { echo ' class=&quot;current&quot;'; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
  &lt;li&lt;?php if ( is_category(showcase) ) { echo ' class=&quot;current&quot;'; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;Showcase&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p class="via">Line 2,3</p>
<p>If category with category slug of <strong><em>css</em></strong> or <strong><em>showcase</em></strong>, <code>class=&quot;current&quot;</code> is added.</p>
</li>
<li>
<h4>DZone Buttons</h4>
<p>Let your website&rsquo;s users vote for our links on DZone without leaving your site.</p>
<p><img height="81" alt="" width="63" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526mTT.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_url&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[url]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_title&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[title]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_blurb&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[description]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_style&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8217;1&#8242;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;language=</span><span class="string"><font color="#0000ff">&quot;javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;</font></span><span>&gt;&lt;/script&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type=&quot;text/javascript&quot;&gt;var dzone_url = '[url]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_title = '[title]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_blurb = '[description]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_style = '1';&lt;/script&gt;&lt;script language=&quot;javascript&quot; src=&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;&gt;&lt;/script&gt;</pre>
<p><img height="35" alt="" width="170" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/1715262Wp.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_url&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[url]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_title&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[title]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_blurb&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8216;[description]&#8216;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&gt;</span><span class="keyword"><strong><font color="#006699">var</font></strong></span><span>&nbsp;dzone_style&nbsp;=&nbsp;</span><span class="string"><font color="#0000ff">&#8217;2&#8242;</font></span><span>;&lt;/script&gt;&lt;script&nbsp;language=</span><span class="string"><font color="#0000ff">&quot;javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;</font></span><span>&gt;&lt;/script&gt; &nbsp;&nbsp;</span></span></li>
<li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type=&quot;text/javascript&quot;&gt;var dzone_url = '[url]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_title = '[title]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_blurb = '[description]';&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;var dzone_style = '2';&lt;/script&gt;&lt;script language=&quot;javascript&quot; src=&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;&gt;&lt;/script&gt;</pre>
<p><a href="http://www.dzone.com/links/buttons.jsp"><font color="#2277dd">More on DZone Buttons, Tools and Widgets</font></a></p>
</li>
<li>
<h4>Reddit Buttons</h4>
<p>Similar to the rest, place a reddit button on your site to promote blog post.</p>
<p><img height="27" alt="" width="131" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526XWl.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_url=</span><span class="string"><font color="#0000ff">&#8216;[URL]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_title=</span><span class="string"><font color="#0000ff">&#8216;[TITLE]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://www.reddit.com/button.js?t=1&quot;</font></span><span>&gt;&lt;/script&gt;&nbsp;&nbsp;</span></span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=1&quot;&gt;&lt;/script&gt;</pre>
<p><img height="76" alt="" width="55" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526HCm.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_url=</span><span class="string"><font color="#0000ff">&#8216;[URL]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_title=</span><span class="string"><font color="#0000ff">&#8216;[TITLE]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://www.reddit.com/button.js?t=2&quot;</font></span><span>&gt;&lt;/script&gt;&nbsp;&nbsp;</span></span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;</pre>
<p><img height="53" alt="" width="74" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171526kk3.png" /></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/#"></a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_url=</span><span class="string"><font color="#0000ff">&#8216;[URL]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&#8216;text/javascript&#8217;</font></span><span>&gt;reddit_title=</span><span class="string"><font color="#0000ff">&#8216;[TITLE]&#8216;</font></span><span>&lt;/script&gt;&lt;script&nbsp;type=</span><span class="string"><font color="#0000ff">&quot;text/javascript&quot;</font></span><span>&nbsp;src=</span><span class="string"><font color="#0000ff">&quot;http://www.reddit.com/button.js?t=3&quot;</font></span><span>&gt;&lt;/script&gt;&nbsp;&nbsp;</span></span></li>
</ol></div>
<pre class="javascript" style="display: none" name="code">&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=3&quot;&gt;&lt;/script&gt;</pre>
<p><a href="http://www.reddit.com/buttons/"><font color="#2277dd">Source</font></a>.</p>
</li>
<li>
<h4><a href="http://www.noupe.com/wordpress/wordpress-archive-that-works-stepxstep-guide-and-plugins.html"><font color="#2277dd">Archive that <em>works</em></font></a></h4>
<p>Noura of <strong>Noupe.com</strong> shows various ways you can style your WordPress Archive page. Techniques and guides includes:</p>
<ul>
<li>Listing all Posts</li>
<li>Display monthly or Yearly Archive</li>
<li>Archives Ordered By Category</li>
</ul>
<p><a href="http://www.noupe.com/wordpress/wordpress-archive-that-works-stepxstep-guide-and-plugins.html"><font color="#2277dd">Read this entry.</font></a></p>
</li>
<li>
<h4><a href="http://mtekk.weblogs.us/code/breadcrumb-navxt/"><font color="#2277dd">Add Breadcrumbs to Your WordPress Blog</font></a></h4>
<p>Breadcrumb trails are a good supplementary navigation system that aid in site usability. This plugin allows you to add breadcrumbs to your theme.</p>
<p><a href="http://www.cosmos-blog.com/breadcrumb.png"><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171527eV9.png" /></a></p>
</li>
<li>
<h4><a href="http://theundersigned.net/2006/06/landing-sites-11/"><font color="#2277dd">Landing Sites / Pages</font></a></h4>
<p>When visitors is referred to your site from a search engine, they are definitely looking for something specific &ndash; often they just roughly check the page they land on and then closes the window if what they are looking for isn&rsquo;t there. Why not help them by showing them related posts to their search on your blog?</p>
</li>
<li>
<h4><a href="http://ocaoimh.ie/2008/06/26/wordpress-exploit-scanner-01/"><font color="#2277dd">WordPress Exploit Scanner</font></a></h4>
<p>This WordPress plugin searches the files on your site for a few known strings sometimes used by hackers, and lists them with code fragments taken from the files. It also makes a few checks of the database, looking at the active_plugins blog option, the comments table, and the posts table.</p>
</li>
<li>
<h4><a href="http://www.blogclout.com/blog/goodies/buy-me-a-beer-paypal-donation-plugin/"><font color="#2277dd">Buy Me a Beer</font></a></h4>
<p>Allows your readers to donate money to you via PayPal. Not something new, but worth knowing.</p>
<p><a href="http://www.blogclout.com/blog/goodies/buy-me-a-beer-paypal-donation-plugin/"><img height="166" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171527T3g.png" /></a></p>
</li>
<li>
<h4><a href="http://www.hongkiat.com/blog/how-to-display-feedburner-subscriber-count-in-text/"><font color="#2277dd">Display Feedburner Subscriber Count In Text</font></a></h4>
<p>How to display feedburner subscriber count in text instead of using chiklets.</p>
<p><a href="http://www.hongkiat.com/blog/how-to-display-feedburner-subscriber-count-in-text/"><img height="175" alt="" width="450" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171527GT1.png" /></a></p>
</li>
<li>
<h4><a href="http://wordpress.org/extend/plugins/notifixious-plugin/"><font color="#2277dd">Notifixious &ndash; Notify Users via IM</font></a></h4>
<p>This plugin allows you to notify your readers on their Instant Messaging (AIM, MSN, GTalk, ICQ&hellip;), Email or SMS when you publish new posts.</p>
</li>
<li>
<h4><a href="http://www.tamba2.org.uk/wordpress/xampp/"><font color="#2277dd">Installing Xampp and WordPress</font></a></h4>
<p>Guide to setup Xampp and run WordPress locally on your machine. You can also install plugins, upgrade to the latest nightly and virtually anything else confident in the knowledge that if it goes wrong, there is no impact on your actual site.</p>
<p><a href="http://www.tamba2.org.uk/wordpress/xampp/"><img alt="" sr="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171527iab.png" /></a></p>
</li>
<li>
<h4><a href="http://hackwordpress.com/how-to-create-an-ajax-based-autocompleting-search-field-for-your-wordpress-theme/"><font color="#2277dd">Create an Ajax-based Auto-completing Search Field</font></a></h4>
<p>Why not helping your visitors to find what they&rsquo;re looking for on your blog, by using a cool auto-completion on your search field?</p>
<p><a href="http://hackwordpress.com/how-to-create-an-ajax-based-autocompleting-search-field-for-your-wordpress-theme/"><img alt="" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/171527H9b.png" /></a></p>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/30-most-wanted-wordpress-tips-tricks-and-hacks/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Display Facebook Statuses on Your WordPress Blog</title>
		<link>http://www.cosmos-blog.com/how-to-display-facebook-statuses-on-your-wordpress-blog</link>
		<comments>http://www.cosmos-blog.com/how-to-display-facebook-statuses-on-your-wordpress-blog#comments</comments>
		<pubDate>Tue, 22 Sep 2009 08:43:30 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Statuses]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=241</guid>
		<description><![CDATA[If you want to show your Facebook Statuses and you are hosting on a WordPress.com blog that restricts you from installing plugins, try this. The following method make use of Facebook status feed and WordPress RSS widget. It will also work for self-host WordPress blogs, but you guys who self-host can use better plugins for [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p><img height="353" alt="add-fbstatus-wp.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164331ij1.jpg" width="500" /></p>
<p>If you want to show your <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/facebook" title="View all posts in Facebook" target="_blank">Facebook</a></span> <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/statuses" title="View all posts in Statuses" target="_blank">Statuses</a></span> and you are hosting on a <a href="http://www.wordpress.com/"><font color="#2277dd"><span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span>.com blog </font></a>that restricts you from installing plugins, try this. The following method make use of <span class='wp_keywordlink_affiliate'><a href="http://www.cosmos-blog.com/tag/facebook" title="View all posts in Facebook" target="_blank">Facebook</a></span> status feed and <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span> RSS widget. It will also work for self-host WordPress blogs, but you guys who self-host can use better plugins for that.</p>
<p>&nbsp;</p>
<h4>Step 1</h4>
<p>Login into <a href="http://www.facebook.com/"><font color="#2277dd">Facebook</font></a>. Under <strong>Profile</strong>, look for <strong>Mini Feed</strong> column, click on <strong>See All</strong>.</p>
<p><img height="131" alt="minifeed-seeall.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164331xYw.jpg" width="400" /></p>
<h4>Step 2</h4>
<p>Under <strong>Mini Feed</strong>, click on &lsquo;<strong>Status Stories</strong>&lsquo; on the right column. Scroll all the way to the bottom, look for &lsquo;<strong>My Status</strong>&lsquo;</p>
<p><img height="132" alt="my-status.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164331C70.jpg" width="400" /></p>
<h4>Step 3</h4>
<p>Copy the link of <strong>My Status</strong>, and we are about to use this in WordPress blog. Your link will look something like the following:</p>
<p><img height="17" alt="minifeed-link.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164331SF9.jpg" width="500" /></p>
<h4>Step 4 (WordPress)</h4>
<p>Under WordPress admin, Navigate to <strong>Design</strong> -&gt; <strong>Widget</strong>. Look for <strong>RSS Widget</strong>, add it to your side bar.</p>
<p><img height="148" alt="rss-widget.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164331L0A.jpg" width="400" /></p>
<h4>Step 5</h4>
<p>Paste the copied URL inside, give it a name, save and your Facebook statuses (or status depends on how many you display) will now appear on your WordPress blog.</p>
<p><img height="299" alt="rss-facebook.png" src="http://www.cosmos-blog.com/wp-content/uploads/auto_save_image/2009/09/164332vb8.jpg" width="400" /></p>
<p><!-- google_ad_section_end --></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/how-to-display-facebook-statuses-on-your-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Hacks to Encourage User Interactivity</title>
		<link>http://www.cosmos-blog.com/wordpress-hacks-to-encourage-user-interactivity</link>
		<comments>http://www.cosmos-blog.com/wordpress-hacks-to-encourage-user-interactivity#comments</comments>
		<pubDate>Tue, 22 Sep 2009 08:37:50 +0000</pubDate>
		<dc:creator>cosmos</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cosmos-blog.com/?p=239</guid>
		<description><![CDATA[All bloggers would like to get more interaction and participation from their readers and visitors. In this post we&#8217;ll look at nine different things you can do to your WordPress theme to add the possibility of some type of interaction. Some involves comments, social media, and other ways of getting readers involved. 1. Show Most [...]]]></description>
			<content:encoded><![CDATA[<div id="lw_context_ads"><p>All bloggers would like to get more interaction and participation from their readers and visitors. In this post we&rsquo;ll look at nine different things you can do to your <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span> theme to add the possibility of some type of interaction. Some involves comments, social media, and other ways of getting readers involved.</p>
<h3>1. Show Most Recent Comments</h3>
<p>One of the most important ways that blogs can encourage readers to get involved is through the comments. There are a number of different strategies for increasing comments and participation from readers, and many of them involve placing extra emphasis on the comments. By displaying the most recent comments (in the sidebar for example) you may be able to encourage more comments because visitors will see that you value their participation.</p>
<p>To display a list of the most recent comments, use the following code in your theme:</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap; height: 300px">
<div class="php codecolorer" style="white-space: nowrap">comments<br />
LEFT OUTER <a href="http://www.php.net/join"><span class="kw3">JOIN</span></a> <span class="re0">$wpdb</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>posts ON <span class="br0">(</span><span class="re0">$wpdb</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>comments<span class="sy0">.</span>comment_post_ID <span class="sy0">=</span><br />
<span class="re0">$wpdb</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>posts<span class="sy0">.</span>ID<span class="br0">)</span><br />
WHERE comment_approved <span class="sy0">=</span> <span class="st_h">&#8217;1&#8242;</span> AND comment_type <span class="sy0">=</span> <span class="st_h">&#8221;</span> AND<br />
post_password <span class="sy0">=</span> <span class="st_h">&#8221;</span><br />
ORDER BY comment_date_gmt DESC<br />
LIMIT <span class="nu0">10</span><span class="st0">&quot;;<br />
<span class="es4">$comments</span> = <span class="es4">$wpdb</span>-&amp;gt;get_results(<span class="es4">$sql</span>);<br />
<span class="es4">$output</span> = <span class="es4">$pre_HTML</span>;<br />
<span class="es4">$output</span> .= &quot;</span>n<br />
<span class="sy0">&lt;</span>ul<span class="sy0">&gt;</span><span class="st0">&quot;;<br />
foreach (<span class="es4">$comments</span> as <span class="es4">$comment</span>) {<br />
<span class="es4">$output</span> .= &quot;</span>n<br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;</span><span class="st0">&quot;.strip_tags(<span class="es4">$comment</span>-&amp;gt;comment_author)<br />
.&quot;</span><span class="sy0">:</span><span class="st0">&quot; . &quot;</span><span class="sy0">&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;<span class="es1">&quot;</span>&gt;ID) .<br />
&quot;</span><span class="co2">#comment-&quot; . $comment-&amp;gt;comment_ID . &quot;&quot; title=&quot;on &quot; .<br />
</span><span class="re0">$comment</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>post_title <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">&quot;</span>&amp;gt;&quot;</span> <span class="sy0">.</span> <a href="http://www.php.net/strip_tags"><span class="kw3">strip_tags</span></a><span class="br0">(</span><span class="re0">$comment</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>com_excerpt<span class="br0">)</span><br />
<span class="sy0">.</span><span class="st0">&quot;&lt;/a&gt;&lt;/li&gt;<br />
&quot;</span><span class="sy0">;</span><br />
<span class="br0">}</span><br />
<span class="re0">$output</span> <span class="sy0">.=</span> <span class="st0">&quot;<span class="es1">n</span>&lt;/ul&gt;<br />
&quot;</span><span class="sy0">;</span><br />
<span class="re0">$output</span> <span class="sy0">.=</span> <span class="re0">$post_HTML</span><span class="sy0">;</span><br />
<span class="kw1">echo</span> <span class="re0">$output</span><span class="sy0">;</span>?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</div>
<p><em><strong>Source: <a href="http://wphacks.com/huge-compilation-of-wordpress-code/">WP Hacks</a></strong></em></p>
<h3>2. Allow Visitors to Email Posts to Their Friends</h3>
<p>If your readers enjoy and appreciate the posts on your blog they may be interested in emailing them to their friends. On most news websites you&rsquo;ll see a link that says &ldquo;email to a friend,&rdquo; but it&rsquo;s not as common on blogs. Adding this functionality into your theme is not as difficult as you might think.</p>
<p>To add an &ldquo;email this&rdquo; link, use the following code in your single.php file:</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap">&lt;a href=&quot;mailto:?subject=<span class="kw2">&lt;?php</span> the_title<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br />
<span class="sy1">?&gt;</span>&amp;amp;body=<span class="kw2">&lt;?php</span> the_permalink<span class="br0">(</span><span class="br0">)</span> <span class="sy1">?&gt;</span>&quot; title=&quot;Send this<br />
article to a friend!&quot;&gt;Email this&lt;/a&gt;</div>
</div>
<p><em><strong>Source: <a href="http://www.wprecipes.com/how-to-allow-your-visitors-to-send-your-articles-by-email-to-their-friends">WP Recipes</a></strong></em></p>
<h3>3. Add a &ldquo;Share on Facebook&rdquo; Link</h3>
<p>While social media and social networking are commonly integrated with blogging, it&rsquo;s more common to see a Digg or Tweetmeme button than one that will allow readers to share the link via Facebook. Since Facebook is such an incredibly popular site, it may provide additional exposure for your blog and provide more opportunities for your readers to interact with your content.</p>
<p>To add a &ldquo;share on Facebook&rdquo; link, use the following code:</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="sy0">&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;http://www.facebook.com/sharer.php?u=&amp;lt;?php the_permalink();?&amp;gt;&amp;amp;t=&amp;lt;?php the_title(); ?&amp;gt;&quot;</span> target<span class="sy0">=</span><span class="st0">&quot;blank&quot;</span><span class="sy0">&gt;</span>Share on Facebook<span class="sy0">&lt;/</span>a<span class="sy0">&gt;</span></div>
</div>
<p><em><strong>Source: <a href="http://www.wprecipes.com/how-to-add-a-share-on-facebook-link-to-your-wordpress-blog">WP Recipes</a></strong></em></p>
<h3>4. Add Custom Bookmark Links</h3>
<p>Many blogs receive tremendous exposure from social media sites, and encouraging your readers to interact by voting or bookmarking can make a big difference in terms of traffic levels. There are plugins and widgets available for this purpose, as well as buttons and badges from the social media sites, but if you&rsquo;d like more control over the look or if you would just like to do it yourself it is possible.</p>
<p><strong>Bookmark with Delicious:</strong></p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="sy0">&lt;</span>a title<span class="sy0">=</span><span class="st0">&quot;Bookmark this post at Delicious&quot;</span> rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://delicious.com/post?url=&amp;lt;?php the_permalink(); ?&amp;gt;&amp;amp;title=&amp;lt;?php echo urlencode(get_the_title(<span class="es4">$id</span>)); ?&amp;gt;&quot;</span><span class="sy0">&gt;</span>Bookmark at Delicious<span class="sy0">&lt;/</span>a<span class="sy0">&gt;</span></div>
</div>
<p><strong>Digg:</strong></p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="sy0">&lt;</span>a title<span class="sy0">=</span><span class="st0">&quot;Submit this post to Digg&quot;</span> rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://digg.com/submit?phase=2&amp;amp;url=&amp;lt;?php the_permalink(); ?&amp;gt;&quot;</span><span class="sy0">&gt;</span>Digg this<span class="sy0">!&lt;/</span>a<span class="sy0">&gt;</span></div>
</div>
<p><strong>Twitter:</strong></p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap">&lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/home?status=<span class="kw2">&lt;?php</span> <span class="kw1">echo</span> <a href="http://www.php.net/urlencode"><span class="kw3">urlencode</span></a><span class="br0">(</span><span class="st0">&quot;Currently reading: &quot;</span><span class="br0">)</span><span class="sy0">;</span> <span class="sy1">?&gt;</span><span class="kw2">&lt;?php</span> the_permalink<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> <span class="sy1">?&gt;</span>&quot; title=&quot;Share this article with your Twitter followers&quot;&gt;Tweet this!&lt;/a&gt;</div>
</div>
<p><strong>StumbleUpon:</strong></p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="sy0">&lt;</span>a title<span class="sy0">=</span><span class="st0">&quot;Share this post at StumbleUpon&quot;</span> rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://www.stumbleupon.com/submit?url=&amp;lt;?php the_permalink(); ?&amp;gt;&amp;amp;title=&amp;lt;?php echo urlencode(get_the_title(<span class="es4">$id</span>)); ?&amp;gt;&quot;</span><span class="sy0">&gt;</span>Stumble this<span class="sy0">!&lt;/</span>a<span class="sy0">&gt;</span></div>
</div>
<p><em><strong>Source: <a href="http://perishablepress.com/press/2008/11/23/fully-valid-seo-friendly-social-media-links-for-wordpress/">Perishable Press</a></strong></em></p>
<h3>5. Rearrange the Comments to Show Most Recent Comments First</h3>
<p>Having a blog that receives a lot of comments from readers can in some ways discourage others from participating. Some readers will not take the time to leave a comment if they feel like theirs will be buried below 100 other comments. One trick to reward those who are going to take the time to comment is to list the comments with the most recent on top, rather than the oldest one being on top.</p>
<p>Find the following code in your comments.php file (please note that not all <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/themes" title="themes">themes</a></span> use the same coding for the comments.php file):</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="kw1">foreach</span> <span class="br0">(</span><span class="re0">$comments</span> <span class="kw1">as</span> <span class="re0">$comment</span><span class="br0">)</span></div>
</div>
<p>and before it add:</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="re0">$comments</span> <span class="sy0">=</span> <a href="http://www.php.net/array_reverse"><span class="kw3">array_reverse</span></a><span class="br0">(</span><span class="re0">$comments</span><span class="br0">)</span><span class="sy0">;</span></div>
</div>
<p><strong><em>Source: <a href="http://wordpress.org/support/topic/208286">WordPress Forums</a></em></strong></p>
<h3>6. Add a User-Submitted News Section</h3>
<p>User-submitted news or community news sections can be a great way for visitors to get involved at your site. With a news section you will be able to display links to relevant posts at other blogs, and your readers will be able to submit posts that they have found to be helpful, or get some extra promotion by submitting links to their own posts.</p>
<p>I included a news section when I launched <a href="http://designm.ag/">DesignM.ag</a> last year and since day one it has drawn significant interest from readers.</p>
<p>The process of adding a news section is more involved than just copying and pasting some code, so I will not be providing code for this one, but Tripwire Magazine published a post a few months ago that will lead you through the process. See <a href="http://www.tripwiremagazine.com/tutorials/wordpress/howto-wordpress-27-user-link-feed-submit-form-and-widget.html">How to: WordPress 2.7+ User Link Feed Submit Form and Widget</a>.</p>
<h3>7. Add Translation Links</h3>
<p>As a blogger, you may be surprised to see how many of your visitors and subscribers come from various countries. While these people may be able to read and understand your posts, there may be some times when they have difficulty or where they would like to share the post with someone who may not be able to read it. In these case, translation can come in handy.</p>
<p>Inserting the code shown below will allow your visitors to easily use Google&rsquo;s translation services:</p>
<div class="codecolorer-container php default" style="overflow: auto; width: 425px; white-space: nowrap">
<div class="php codecolorer" style="white-space: nowrap"><span class="sy0">&lt;</span>ul id<span class="sy0">=</span><span class="st0">&quot;translations&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cde&quot;</span><span class="sy0">&gt;</span>Translate this page to Deutsch<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Ces&quot;</span><span class="sy0">&gt;</span>Translate this page to Espanol<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cfr&quot;</span><span class="sy0">&gt;</span>Translate this page to Francais<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cit&quot;</span><span class="sy0">&gt;</span>Translate this page to Italiano<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cpt&quot;</span><span class="sy0">&gt;</span>Translate this page to Portugues<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Car&quot;</span><span class="sy0">&gt;</span>Translate this page to Arabic<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cja&quot;</span><span class="sy0">&gt;</span>Translate this page to Japanese<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a rel<span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://translate.google.com/translate?u=&amp;lt;?php echo urlencode(&#8216;http://&#8217;.<span class="es4">$_SERVER</span>['HTTP_HOST'].<span class="es4">$_SERVER</span>['REQUEST_URI']); ?&amp;gt;&amp;amp;langpair=en%7Cko&quot;</span><span class="sy0">&gt;</span>Translate this page to Korean<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span><br />
<span class="sy0">&lt;/</span>ul<span class="sy0">&gt;</span></div>
</div>
<p><em><strong>Source: <a href="http://perishablepress.com/press/2008/12/09/valid-seo-friendly-post-translation-links/">Perishable Press</a></strong></em></p>
<h3>8. Google Custom Search</h3>
<p>One of the best ways for visitors to find what they are looking for is to use a site-wide search. Unfortunately, the default <span class='wp_keywordlink'><a href="http://www.cosmos-blog.com/tag/wordpress" title="WordPress">WordPress</a></span> search isn&rsquo;t much help in most cases. However, you can easily add custom search powered by Google to your blog (plus you can monetize the search through AdSense).</p>
<p>In order to get your own custom search from Google, you will need to sign up with them and they will provide the code. Pro Blog Design has a tutorial that takes you through all of the steps that are involved. See <a href="http://www.problogdesign.com/how-to/make-a-google-custom-search-for-your-blog-and-make-money/">Make a Google Custom Search for Your Blog, and Make Money</a>.</p>
<h3>9. Display Facebook Status on Your Blog</h3>
<p>Many blogs display most recent tweets, but it&rsquo;s also possible to share your Facebook status on your blog. There are a few steps involved in doing this with WordPress, and Hongkiat has a tutorial that will lead you through the process. See <a href="http://www.hongkiat.com/blog/how-to-display-facebook-statuses-on-wordpress-blog/">How to Display Facebook Statuses on WordPress Blog</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cosmos-blog.com/wordpress-hacks-to-encourage-user-interactivity/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

