Charlie,

On Mar 11, 2006, at 4:30 PM, Charlie Clark wrote:

> On Sat, 11 Mar 2006 21:36:41 +0100, Roger Roelofs  
> <[EMAIL PROTECTED]> wrote:
>
>> I would expect that this would prevent any content in the sections
>> #navigation, #header, #picture, #impressum from printing and this is
>> exactly how Opera 8.5 works. Both Firefox 1.5 and IE 6.0, however,  
>> print
>> the content of the navigation.
>
> the site is http://www.make-love-not-law.com
The css validator is your friend.  Fix the errors and it will likely  
work just fine.  Actually removing the <style> tags from the css files  
might be all you need to to, but fixing the other errors would be good.
<http://jigsaw.w3.org/css-validator/validator? 
profile=css2&warning=2&uri=http%3A%2F%2Fwww.make-love-not-law.com>

>>> Another question I have is: is there a good way of having dynamic  
>>> elements
>>> in CSS? I have some keyvisuals for my website which I would like to  
>>> make
>>> section specific.
>>>  div#picture {
>>> background: #F0EFDD url(/images/image.jpg) no-repeat;
>>> }
>>>  I would like to have something like "portrait.jpg" for pages about a
>>> person, "flower.jpg" for pages about flowers, etc.
>>  Option 4: add a section specific id to the body tag and include it  
>> in the css like so...
>>  #picture {
>> background: #F0EFDD url(/images/image.jpg) no-repeat;
>> }
>>  #person #picture { background-image: url(/images/portrait.jpg); }
>> #flower #picture { background-image: url(/images/flower.jpg); }
>
> That's an interesting suggestion which nearly does what I want.  
> However, as you will see on the website even my keyvisuals are  
> dynamic.

How about

#person #picture { background-image: url(/images/kv.php?type=Portrait);  
}

Assuming you can change the script to serve an image from a subset  
related to the subject area.  The script can send http caching headers  
to control how long the browser should wait before re-requesting the  
image (but that is off-topic for this list).

hth
-- 
Roger Roelofs
"Remember, if you’re headed in the wrong direction,
        God allows U-turns!"
          ~Allison Gappa Bottke
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to