Reply to printing "sidenotes" in IE6/7

Your name:

Reply:


Posted by JWS on 04/25/07 08:44

I make "sidenotes" in a simple html page with the following css:

div#content {
margin-right: 22%;
}

..sidenote {
float: right;
clear: right;
margin: 0 -28% 1em 1em;
width: 25%;
}

Using this as follows:

<div id="content">
<p>(text of paragraph A)</p>
<span class="sidenote">(sidenote for paragraph B)</span>
<p>(text of paragraph B)</p>
</div>

This works quite well, for display and printing, both in IE 6/7,
and in Mozilla & derivatives. The outer rectangle represents the
"page":

+--------------------------------------------------------+
|+-----------------------------------+ |
|| | |
|| PARAGRAPH A | |
|| | |
|+-----------------------------------+ |
|+-----------------------------------+ +----------------+|
|| | | SIDENOTE FOR B ||
|| PARAGRAPH B | | ||
|| | +----------------+|
|| | |
|+-----------------------------------+ |
+--------------------------------------------------------+

But I want right-justified text (especially for printing), so I
add in css for div#content:

text-align: justify;

This also displays OK in the browsers mentioned, but when printing
with IE 6/7 I get:

+--------------------------------------------------------+
|+-----------------------------------+ |
|| | |
|| PARAGRAPH A | |
|| | |
|+-----------------------------------+ |
| +----------------+|
| | SIDENOTE FOR B ||
| | ||
| +----------------+|
|+-----------------------------------+ |
|| | |
|| PARAGRAPH B | |
|| | |
|| | |
|+-----------------------------------+ |
+--------------------------------------------------------+

Why does this happen? Any suggestions/tricks to fix this?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация