It is amazing that many web developers still use onload method embedded in the BODY tag, like <HEAD> <BODY onload=”document.contact.userID.focus();”> <form name=”contact”> <input type=”text” name=”userID” > </form> </BODY> </HEAD> There are two problems with this line of code. Embedding code (behavior) with HTML (structure) makes it difficult to maintain the page. onload() method will executes […]
SB Left – Large Image List
Color coordination plays a big role in the look and feel of a website. An appealing color scheme is an important prerequisite for eye-catching web design. Dull or very sharp colors or mismatch colors will not only look ugly it may overshadow other nice elements of your website. Choosing vibrant, harmonious colors that are pleasant […]
Positioning text in the center of an element is easily done using text-align:center property. But how do you position an entire element, for e.g; a div or an image in the center of the containing parent element? For example, if you want to put an image at the center of your header div how do […]
I have TwitterTools plugin to tweet my new blog posts to my twitter account. Recently I noticed that my tweets from TwitterTools plugin do not have the URL to my posts. I checked my plugin settings and everything looked OK.
One of the challenges web designers face is to get various web browsers render their web pages in a consistent manner. The reason is every browser assigns slightly different default styles to certain page elements. A simple approach to handle this cross-browser inconsistency is to overwrite browsers’ default styles. This technique is known as resetting […]