To turn off iPhone auto correction feature (predictive dictionary) on textboxes, add autocorrect=”off” attribute to your input tag.
<input type="text" id="keyword" name="keyword"
autocorrect="off" />
You can also turn off auto capitalising/capitalizing feature by adding autocapitalize=”off” attribute.
<input type="text" id="keyword" name="keyword"
autocorrect="off" autocapitalize="off" />
And lastly, you can turn off auto complete in a similar way.
<input type="text" id="keyword" name="keyword"
autocorrect="off" autocapitalize="off" [...]
This is a lazy fix to redirect any url that doesn’t exist (resulting in 404) to the homepage.
Add the following line of code into the .htaccess file inside the root directory of your website.
ErrorDocument 404 /
All these CSS are used in a conditional CSS file for IE 6 to ensure CSS validity as some of the properties used here are proprietary to the IE 6 browser.
<!–[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]–>
Setting an opacity
.transparency {
filter: alpha(opacity=50);
}
Change the link to a hand cursor
a.link {
cursor: [...]
Problem in IE8:
The upper half of the <fieldset> border goes missing. This problem has been discussed here and shown here.
HTML:
<form action="login.php" method="post" id="login">
<fieldset>
<legend>Login</legend>
<label for="username" class="label">Username</label>
<input type="text" name="username" id="username"/>
<label for="password" class="label">Password</label>
<input [...]
IFrame Injection Attack is considered one of the most common and most basic cross site scripting (XSS) attacks. If you have recently got an iframe attack to your website, do not panic. Here are a few things that you can do immediately after you discovered that your website has been a victim [...]