Re: In IE, 100% width sometimes = wider than browser?

by J_A_B(at)t-online.de (Jens Brueckmann)

 Date:  Fri, 29 Aug 2003 01:24:17 +0200
 To:  Complex <complex_hwg(at)yahoo.com>
 Cc:  hwg-techniques(at)hwg.org
 References: 
  todo: View Thread, Original
Hi,

there exists one CSS-problem in your style-sheet.

Look at the following class:

div.image_desc {
	text-align: left; 	width: 80%; 	margin-left: 15%; 	margin-right: 5%; 
	margin-top: 0.2em;}

According to the box-model[1] this class should work fine. However, 
Internet Explorer has its problems keeping standards[2].

You might try using auto margins and no width-attribute instead (perhaps 
just some padding of 1%):

div.image_desc {
	text-align: left;  	margin: auto;
	padding: 1% 1% 0}


[1]http://www.w3.org/TR/REC-CSS2/box.html
[2]http://msdn.microsoft.com/library/default.asp?url=/library/en- 
us/dnie60/html/cssenhancements.asp


Hope this will fix your problem. Apart from that your php-script produces 
some strange characters in the very first line:

<?xml version="1.0" encoding="UTF-8"\?>

This is most likely due to not escaping the question mark of the xml 
processing instruction:

<? echo("<?xml version=\"1.0\" encoding=\"UTF-8\"\?>\n"); ?>


Yours,

jens

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA