HTML
<input type="submit" id="submit" value="Search" />
CSS
#submit {
cursor: pointer;
}
Continue reading Change the arrow into a hand when hovering over ‘Submit’ button
In order to display a download dialog for pdf file rather than opening it in the browser, we can put the following snippet of code in a php file and name the file download.php.
The path to the pdf file is specified in $filename variable. You can also pass filename as a parameter in the [...]
Continue reading Display a download dialog for pdf in PHP
In header.php file of my WordPress theme, I have the following code to display a different header image for different pages.
<?php
if (is_page(‘about’)) {
$image = ‘image_about.jpg’;
} else if (is_page(‘projects’)) {
$image = ‘image_projects.jpg’;
} else if (is_page(’services’)) {
[...]
Continue reading How to display a different header image for different pages in WordPress
Continue reading Reasons For Using Internet Explorer
Unlike any other mobile web browsers, iPhone comes with Safari browser which makes it possible to view any website that works on Safari. However, the challenge is that the screen size of an iPhone is not as big as a traditional monitor and therefore, if you have got a website which has a [...]
Continue reading Making a website iPhone-friendly using CSS
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

