Previous Message
Next Message

Best Practice for Browser Differences ?

Sent by Ericj on 8 May 2008 04:04


---901717059-1744010160-1210217258=:10916
Content-Type: TEXT/plain; CHARSET=US-ASCII

I have PPK's book on Javascript but have not studied it thoroughly.  However, I am aware of his
preferred method for handling differences in Javascript.  What is the professional or commercial way
of dealing with browser differences in CSS?  For instance in the following:
 
..thing {
  position:absolute;
  left:100px;
  top:100px;
  width:100px;
  height:100px;
  border:1px solid black;
}
 
<div class="thing"></div>
 
In IE6 the DIV is positioned at 100,100 and the outside dimensions of the box are 100w x 100h.  In
FireFox the DIV is also positioned at 100,100 but the outside dimension of the box is 102w x 102h. 
What is the preferred method for adjusting for this difference so that both browsers have a DIV with
an outside dimension of 100w x 100h.
 
Thank you.
Eric Juvet
 
 
 
 
 

---901717059-1744010160-1210217258=:10916
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
---901717059-1744010160-1210217258=:10916--
Previous Message
Next Message

Message thread:

Possibly related: