Reply to Re: Change a table on printing

Your name:

Reply:


Posted by Jukka K. Korpela on 03/05/07 12:50

Scripsit Richard Formby:

>> <table>
>> <tr><td></td><td></td><td></td></tr>
>> </table>
>
> Only three cells? Doesn't look like "tabular" data to me :-)

Especially since the data content is fairly small. :-)

>> Is it possible that when I print the document, to reposition the
>> cells vertically.
>
> No.

In terms of CSS specifications, it actually is:

td { display: block; }

IE hasn't still learned to do this, so don't expect this to work on the WWW
in the next few years.

However, you could position the cells "absolutely" the way you like. Things
get a bit awkward then, especially since you would probably have to decide
on the heights and since the table, ripped naked by removing all of its
cells, might misbehave a little in rendering.

What you _can_ do effectively and easily with a table in CSS is to
_suppress_ printing of navigation blocks that are just a nuisance on paper
(and not much more on screen, someone might add). With

<table>
<tr><td class="navi">Some navi stuff here</td>
<td>Some real content here</td>
<td>The indispensable advertorials</td></tr>
</table>

you could have

@media print { .navi { display: none; } }

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[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

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