How to position HTML element in the center using CSS.

3 Comments

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 you accomplish this?

There are several ways to align an element in the center but the preferred and elegant method is to use margin property. More

article clipper vert How to position HTML element in the center using CSS.
 

Reset CSS: A simple solution to browsers’ inconsistencies.

No Comments

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 CSS. To me it is more like setting a starting point for your web page being rendered by various browser. By setting (or resetting) the base styles you start with a consistent base for each browser. More

article clipper vert Reset CSS: A simple solution to browsers inconsistencies.
 

Nine Must Have JavaScript Tools For Every Web Developer

2 Comments

Almost all major web development projects include some javascript. Developing Javascript may be easy for some but working around various browsers’ incompatiblities makes it a bit more tedious chore. As a developer I always welcome the opportunity to use development tools that may help in the development process. Following is a list of some useful Javascript tools that I believe every web programmer should have at his or her disposal.
More

article clipper vert Nine Must Have JavaScript Tools For Every Web Developer