Afficher un message
Vieux 10/09/2007, 20h28   #8
John Hosking
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: printing transparent images in a browser

Jon wrote:

>
> John, thanks for taking the time to comment everything and not
> consider what could be an answer to my question (u gotta love usenet
> forums lol). No, seriously. You make some very valid points so I will
> answer them.


I'm glad you appreciate that I thought about your page. It was in fact
an attempt to address your question. I'm sorry if you think you didn't
get your money's worth. I'll give you double your money back. :-)

BTW, it's usually preferred if you place your responses to my points
(valid or otherwise ;-) ) immediately after my points, rather than
copying and pasting them *again* into your reply. Points you don't want
to reply to should be trimmed out of your reply. And please do feel free
to trim signatures.

> On 9 Sep., 04:26, John Hosking wrote:
>> Jon wrote:
>>
>>> While building a printable six month calendar I'm trying to solve a
>>> difficult problem, namely printing background CSS colors. Let me first
>>> tell you what I have tried:


>>> A link to the calendar:http://bookevent.dk/JSCalendar/calendar.htm
>>> EXT in effect:http://bookevent.dk/JSCalendar/GenCalendar.htm



>> The months have only 24 days, which is weird. There's no scroll bar, so
>> it can't be that I've just got my viewport smaller than you foresaw, right?


> Yes your are completely right. If I put overflow:auto I have
> scrollbars all the time so obviously I have a box width/height issue


So why use overflow:auto instead of overflow:visible? I'd leave the
declaration out completely.

> which I will work out (I think I wrote it was a work in progress?).
> Anyway, if you know where my CSS error is please, tell me.


Well, I have very little interest in checking through the JS that
produces all the resulting markup, but I can see the generated code, and
that lets me generate what will seem like a smart-aleck answer. Ready?

Your CSS error is putting it inline. For every day in the calendar, I
see stuff like style="left: 83.3333%; top: 87.0968%; width: 16.6667%;".
This stems from what I think is a much larger (and more general) error:
coding the page as a huge clump of absolutely positioned divs and spans.
A calendar is a classic example of tabular data. I recommend you use
<table>.

Probably not what you want to hear (and still doesn't provide any
direction about bg colors), but it's how I see it.

--
John
Pondering the value of the UIP: http://improve-usenet.org/
  Réponse avec citation
 
Page generated in 0,06341 seconds with 9 queries