HighDots Forums  

Print stylesheet not working at all

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Print stylesheet not working at all in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
wg
 
Posts: n/a

Default Re: Print stylesheet not working at all - 08-06-2004 , 03:12 AM






Michael Fesser wrote:
Quote:
No bug, it's because of the title-attibutes.

Read about the three different ways of referring to an external
stylesheet (persistent, preferred, alternate):

Alternative Style: Working With Alternate Style Sheets
http://www.alistapart.com/articles/alternate/

In your case both stylesheets have a title-attribute, so the browser
takes the first as the preferred one and the other as an alternative.
That's why the print-stylesheet doesn't work: If in print-mode the
browser still prefers the first, but this only applies to screen-media.

If you switch to the other stylesheet (Mozilla and Opera allow you to
switch between different alternate stylesheets if available) the result
is vice versa: The print-stylesheet works, but in screen-mode no styles
are used, because the now preferred stylesheet only applies to print-
media.

Simply remove the title-attributes to make your both stylesheets
persistent and it should work as expected.

HTH
Micha
Thanks for the explanation, Michael. I didn't realize the title
attribute had that effect when the stylesheets used different media
types. That makes sense and it works like you described.



Reply With Quote
  #12  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Print stylesheet not working at all - 08-06-2004 , 08:32 AM






.oO(wg)

Quote:
Thanks for the explanation, Michael. I didn't realize the title
attribute had that effect when the stylesheets used different media
types. That makes sense and it works like you described.
You're welcome.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.