Charlie,

On Mar 11, 2006, at 9:41 AM, Charlie Clark wrote:

> I have been struggling with setting up a print style sheet for a 
> website
> and preventing some sections from printing.
>
> <style type="text/css">
> #navigation, #header, #picture, #impressum
> {
> display: none;
> }
>
> 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.
We'll need a ulr to debug this.  If the page isn't on a public server, 
can you put up a test page?

> 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); }

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