Wednesday, September 28, 2011

Break the rules

Browsers render <br> tag differently. The space it will took is not same in all browsers. So avoid using <br> tag to accommodate space between elements. Use CSS instead. Developer tendency to code basic HTML without the help of UI / Front end engineers leads to strange problems. Code semantic. Never use "<br />" tag to accommodate space between <tr> or <li> tags or html elements when design consistency in all browsers is utmost important.
Use CSS classes to get the desired space between elements.

No comments:

Post a Comment