Lee Bettridge wrote: > Hello all, > I have an issue with the box model difference between IE and Mozilla. > On Mozilla the padding is added to the width and in IE it is not, as the > included example shows. With Mozilla the two boxes meet to make a flush > corner, IE leaves a gap. > > Is there a way around this so I can get the same result on all modern > browsers? > > Thanks. > >
If you are running IE/6 and down in quirksmode (as I often do /on purpose/): <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> The correction is: * html .pageHeading {width: 615px;} Deleting the xml above the doctype puts it in standards mode-- in which case, no correction for IE is needed. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] 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/