Itchycontent.com Itchycontent.com Itchycontent.com
  Main Page :> About Us :> Add Your Link :> Privacy of Info :> Terms of Service :> Add Your Article
Search:   
Get Free Links
 

Academics & Learning

Recreation & Entertainment

People & Communities

Computers & Software

Self Help

Garden & Home

Health & Therapy

Teens & Children

Government & Politics

Technology & Science

Games & Play

Banking & Finance

Shopping & Auction

Travel & Accommodation

Property & Agents

Careers & Employment

Business & Services

News & Media

Medical Care

Drink & Food

Automotive

Creative Arts

Fashion & Lifestyle

Sports

 

Main Page –› Computers & Software –› Web Development Services
 

CSS Box Model and Standards Un-Compliant Browsers

 
Author: Jon Collins

One of the frustrating things in web design currently is the failure of major browsers to stick to one set of standards in what html tags are supported and how they are interpreted. If you are designing using CSS, it doesn't take long to realise that using the margin, padding and width properties often results in some stray pixels. The rule governing these things is called the CSS box model.

Unfortunately, IE5/win had its own ideas about the box model and interprets width as the distance between the outer edges of the box borders whereas the correct interpretation is the distance between the outer edges of the actual content (the inner edges of the padding).

This is just one of the many problems you encounter when you start thinking beyond how your page renders in just your own browser with your screen resolution. The method I use on my sites to reign in those pesky browser variations is to use a strict document type definition (DTD) on all pages. It can restrict some aspects of your creativity, but in terms of getting everything in the same place in different browsers, it makes things a lot easier. To do this, just add the following as the first line of your HTML document (before the tag):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">If you use Javascript, your problems will increase even further! The way Javascript is interpreted is different for pretty much every browser and often your functions will require some tweaking or even a number of separate parts to achieve the same results on different browsers.

Everyone join the campaign for standards compliance among browsers so we can stop losing time making our pages cross-browser compatible!!

Author Bio:
Jon Collins is a proclaimed scripter. Jon likes to write articles about this topic.
You can search for this article using: web site development, web design & development, website development tampa
 
 
 

Related Articles

 
Promoting Arcade Websites
 
How to Eliminate Spyware, Adware and Pop-up Ads for FREE!
 
10 Persuasive Triggers To Plug Into Your Ad
 
Accept Credit Card Online
 
Microsoft Word 2003 ? Research Any Topic You Want From Inside Your Document
 
The Easy Way Of Getting Free One Way Links
 
Cell Phone Celebrities: Stars on your cell phone
 
3d Studio Max
 
When not to contact a reporter
 
One of the Best Ways to Cultivate New Business and Save Hours of Time is to Use an Autoresponder
 
 
 
 

How to Use SQLXML to Retrieve Data from SQL Server Database?

Using SQL Server 2000 and above versions you can retrieve data from SQL Server in XML format directl ... - Balaji B
 

Google Adsense: How Much Money Can You Make and URL Channels Explained.

How Much Money Can I Make With Google Adsense? How much do you want to make? How hard do you want to ... - Barry McDonald
 

Web Business Overview - Have a Plan

So you've decided you'd like to go into business on the web, eh? This article will give an overview ... - Halstatt Pires
 
 

Online Entreprenuer

This is a article on different ways to make money online in your spare time. - Benjamin Hargis
 

Getting the Best Deal on PSP Games

3 Tips To Get The Best Value For Your PSP Games Now - Yap Kee Chong
 

If You Want To Be A Millionaire, Talk To Millionaires

You have decided you want a better life, more money, more free time, a bright future, an exciting li ... - Linden Huckle
 

Tips on How to Avoid Spammers and Hackers

Just about everyone will be familiar with the power of the Internet and the great things it can offe ... - David McKone
 

Alien Species Design and Organic Success Models

Have you ever considered what alien species might look like? Some of us have and many of our thought ... - Lance Winslow
 
 
Main Page :> Privacy of Info :> Terms of Service
© 2008 www.itchycontent.com All Rights Reserved.