You are here: Re: CSS and print layout « HTML « IT news, forums, messages
Re: CSS and print layout

Posted by The Eclectic Electric on 12/11/06 18:54

"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:43022$457da661$40cba7d0$18240@NAXS.COM...
> The Eclectic Electric wrote:
>> I'm having a great struggle trying to format my page for printing.
>> Specifically getting my divs to appear in the place I want them to. I
>> have 3 divs: right, list and footer. When displayed on screen, they
>> appear where I want them:
>>
>> L R
>> F
>>
>> But when I print, they appear as
>>
>> R
>> L
>> F
>>
>> which really mucks everything up.
>>
>> I've tried every imaginable combination of clear and float but to no
>> avail.
>>
>> I've been testing on Firefox 1.5, but it looks even more weird in IE6.
>>
>> Is it even possible to do this when printing or should I revert to layout
>> by table?
>>
>> Any help would be greatly appreciated. I've printed out the contents of
>> the relevant page here (it's made by PHP and not in a very eye-friendly
>> format). To recreate it, start at http://www.listyblue.com/main.php click
>> on Create List then on Format List for Printing.
>>
>> The CSS:
>>
>> http://www.listyblue.com/print.css
>> http://www.listyblue.com/css.css
>>
>> +e
>>
>> <!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" xml:lang="en" lang="en">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
>> <title>Listyblue ::: Your List</title>
>> <style type="text/css"> @import "css.css"; </style>
>> <link rel="stylesheet" type="text/css" href="print.css" media="print" />
>
> Do not see this linking of this print stylesheet in your source...
>

I should have been more clear. The source in my post is not from
http://www.listyblue.com/main.php but from
http://www.listyblue.com/makelist.php. But you need to have some content
for the latter to format to see the effect, hence needing to go to main.php
first.

It definitely picks up the print.css as I have a color: ref directive in
their for <h1> and it does turn red in print preview (and the <ul> directive
is processed too).

+e

 

Navigation:

[Reply to this 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

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