Posts

Showing posts from November, 2009

How to Use Different CSS Style Sheets For Different Browsers (and How to Hide CSS Code from Older Browsers)

In an ideal world, you only need one set of CSS style sheets for your website, and those styles will work with every browser currently being used. This, as every webmaster soon finds out when he/she uses CSS, is a pipe dream. The modern browsers all have uneven levels of implementation of the CSS standards. As though this isn't bad enough, their implementations are often buggy - and they don't share the same bugs! And when you have solved that tricky bit, you find that your site has certain visitors (often your best customers) who, for various reasons, are using older browsers that have only rudimentary support for CSS. What most (if not all) CSS-using webmasters want is a way to specify that a certain style sheet is to be used by such and such a browser and not others, as well as to hide other style sheets from older browsers. The Good and Bad News The bad news is that there is no standard documented method to include or exclude style sheets from being used by every browser st

10 Strategies To Make Your E-Commerce Website A Success

E commerce websites have come of age. As customers realize the ease and benefits of online shopping, the popularity of e-commerce websites have soared like anything else. However, with the increase in the number of Ecommerce websites vying for attention, it has become important for them to devise strategies to be better than the competition and attract more traffic. Here are some new trends and techniques that can help your Ecommerce processes. Focus on User Experiences Often we concentrate so much on improving the usability of the website that we completely forget about the user experience. The way users feel on the website goes a long way in influencing their purchase options as well as their general perception of the website. Therefore, try to connect with the visitors on intimate level and then build up your branding through strategic marketing techniques. Provide Customized Messages to Specific Audience Segments The chances of sales increases when the audience is more targeted. Wh

How To Enhance The Usability Of Your Homepage Design

The homepage of your website is the face of your online presence. It is what makes the first impression on online audiences about your company and business. When people type in the URL of your website, they reach your homepage. The homepage, should therefore present a brief introduction about the website and lure visitors to browse further within. The homepage is perhaps the most important page of the website and thus you need to take adequate measures to enhance its usability. Here are some tips to ensure the same. Include a Crisp and Catchy Tagline Draft a tagline for your website homepage that informs about the company and business in a simple sentence. When visitors enter the homepage, they should know what the website and the company is all about just by reading the tagline. In fact, by drafting a catchy tagline you can catch the attention of your visitors and make sure they don't forget you. Draft a Meaningful Title Tag The title tag of your homepage should have your company

Here's a different way to generate forms using PHP, and to take care of all the required field validation too. It might help someone:

array( "type"=>"select", // attributes are an associative array "attributes"=>array( "mr"=>"Mr.", "ms"=>"Ms.", "miss"=>"Miss.", "mrs"=>"Mrs.", ), ), "first_name"=>array( "type"=>"text", "size"=>40, "required"=>true, "onclick"=>"alert('test');", "style"=>"border:2px solid #CCCCCC; padding:4px; font-size:15px;", ), "last_name"=>array( "type"=>"text", "size"=>70, "required"=>true, ), ); $errors=array(); if($_REQUEST['save']){ // do sql here... $sql = "INSERT INTO foo SET inser