| Author |
Media types and style sheets
|
|
| esanity 2004-03-01, 5:28 am |
| I have a problem with style sheets. As you may or may not know it is possible
in HTML to specify different style sheets for different devices. Probably the
most common example of this is to have a version which the user sees on screen
and another version for print. That way you can make the site print perfectly
without having a print only function. You do this by using the media="screen"
and media="print" tags. My problem is that Dreamweaver MX 2004 doesnt
understand this and tries to display both the print version and the screen
version at the same time making the visual interface of Dreamweaver impossible
to use. The only way around this I can find is to only import the print style
sheet at the very last moment before going live. However this is obviously not
the best solutions. Does anybody have any better ideas.
- - - -
Paul Boag [ Director ]
H E A D S C A P E
www.headscape.co.uk
tel: 023 92 432829
mob: 07760 123 120
- - - -
Do you find it difficult to keep your site up-to-date?
Visit: www.headscape.co.uk/management/
| |
| Peter Connolly 2004-03-01, 6:28 am |
| esanity wrote:
> The only way around this I can find is
> to only import the print style sheet at the very last moment before
> going live. However this is obviously not the best solutions. Does
> anybody have any better ideas.
Text / CSS Styles / Design-time...
...and hide the print style sheet at design time.
HTH,
Pete.
--
Peter Connolly | Macromedia Certified Dreamweaver MX Developer
http://www.acutecomputing.co.uk
Derby
UK
| |
| Mark Fletcher 2004-03-01, 7:28 am |
| Hello Paul,
Try hiding the print CSS using Design Time Style Sheets. With the CSS Styles
panel on screen click on the "Panel Options Menu" and choose
"Design-time..." And then in the dialog hide the Print CSS file at design
time.
HTH
Mark
------------------------------------------------------------
Mark Fletcher
Team Macromedia Volunteer for Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia
------------------------------------------------------------
"esanity" <webforumsuser@macromedia.com> wrote in message
news:c1uvat$knc$1@forums.macromedia.com...
> I have a problem with style sheets. As you may or may not know it is
possible
> in HTML to specify different style sheets for different devices. Probably
the
> most common example of this is to have a version which the user sees on
screen
> and another version for print. That way you can make the site print
perfectly
> without having a print only function. You do this by using the
media="screen"
> and media="print" tags. My problem is that Dreamweaver MX 2004 doesnt
> understand this and tries to display both the print version and the screen
> version at the same time making the visual interface of Dreamweaver
impossible
> to use. The only way around this I can find is to only import the print
style
> sheet at the very last moment before going live. However this is obviously
not
> the best solutions. Does anybody have any better ideas.
>
> - - - -
> Paul Boag [ Director ]
> H E A D S C A P E
> www.headscape.co.uk
> tel: 023 92 432829
> mob: 07760 123 120
> - - - -
> Do you find it difficult to keep your site up-to-date?
> Visit: www.headscape.co.uk/management/
>
>
| |
|
| esanity wrote:
>My problem is that Dreamweaver MX 2004 doesnt
> understand this and tries to display both the print version and the
> screen version at the same time making the visual interface of
> Dreamweaver impossible to use.
Hi
I think something is amiss here, I haven't experienced this problem at
all and I have several sites running the same sort of set up.
Have a look at tis article\tut I co wrote and see if you can see
anything that differs from what you are doing. I would guess that you
are not maybe hiding elements correctly from one style sheet to the other.
http://www.macromedia.com/devnet/mx...n_to_print.html
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
|
|
| Tom Muck 2004-03-01, 10:28 am |
| "esanity" <webforumsuser@macromedia.com> wrote in message
news:c1uvat$knc$1@forums.macromedia.com...
> I have a problem with style sheets. As you may or may not know it is
possible
> in HTML to specify different style sheets for different devices. Probably
the
> most common example of this is to have a version which the user sees on
screen
> and another version for print. That way you can make the site print
perfectly
> without having a print only function. You do this by using the
media="screen"
> and media="print" tags. My problem is that Dreamweaver MX 2004 doesnt
> understand this and tries to display both the print version and the screen
> version at the same time making the visual interface of Dreamweaver
impossible
> to use.
Dreamweaver shouldn't be doing this. If you have defined styles for print,
those styles should not be rendered at all in Dreamweaver unless you set the
Dreamweaver rendering mode to print.
I have a free extension that allows you to set the rendering mode of
Dreamweaver. Check out http://www.dwteam.com/extensions/
--
---------------------------------------------------------------
Tom Muck
co-author -- Dreamweaver MX: The Complete Reference
www.dwteam.com/tcr
Extending Knowledge, Daily
http://www.communityMX.com/
---------------------------------------------------------------
Recordset Navigation Suite
www.basic-ultradev.com/exthelp/datanavigation
| |
|
| James Shook wrote:
> "Background colors can be a problem when printing in grayscale.
> Background colors can be a problem when printing in grayscale."
>
> But are background colors a problem when printing in grayscale?
Thanks James, that's fixed now :)
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
|
| esanity wrote:
> Well it is looking more and more like I have a bug in Dreawmeaver.
How are you hiding your print elements from the media style sheet?
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
| esanity 2004-03-01, 12:28 pm |
| Well it is looking more and more like I have a bug in Dreawmeaver. I have tried
using the media type swapper extension that Tom mentioned and that doesnt make
any difference. The only thing that seems to work is to manually exclude a
style sheet in design-time which is a bit of a crap solution. Just so you know
here is the code I use to import the two style sheets:
<style type="text/css" media="screen">
<!--
@import url("css/advanced.css");
-->
</style>
<style type="text/css" media="print">
<!--
@import url("css/print.css");
-->
</style>
| |
| esanity 2004-03-01, 12:29 pm |
| Ah ha! This does the trick. Thanks for all your help guys:
<style type="text/css">
<!--
@import url("css/advanced.css") screen;
@import url("css/print.css") print;
-->
</style>
| |
|
| jojo wrote:
> How are you hiding your print elements from the media style sheet?
sorry I meant screen not media.
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
| Mark Fletcher 2004-03-01, 12:29 pm |
| Glad you managed to solve the problem!
Mark
------------------------------------------------------------
Mark Fletcher
Team Macromedia Volunteer for Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia
------------------------------------------------------------
"esanity" <webforumsuser@macromedia.com> wrote in message
news:c1vo0b$l6$1@forums.macromedia.com...
> Ah ha! This does the trick. Thanks for all your help guys:
>
> <style type="text/css">
> <!--
> @import url("css/advanced.css") screen;
> @import url("css/print.css") print;
> -->
> </style>
| |
| esanity 2004-03-01, 1:28 pm |
| I am going around in bloody circles. For some reason that now escapes me this
works in Dreamweaver:
<style type="text/css">
<!--
@import url("css/advanced.css") screen;
@import url("css/print.css") print;
-->
</style>
but doesnt in IE 6.
| |
| Randy Edmunds 2004-03-04, 9:28 pm |
| > here is the code I use to import the two style sheets:
>
> <style type="text/css" media="screen">
> <!--
> @import url("css/advanced.css");
> -->
> </style>
> <style type="text/css" media="print">
> <!--
> @import url("css/print.css");
> -->
> </style>
Yes, you found a bug in DW MX 2004 media type support. That particular
case is broken. I see later in this thread that you found one of the
workarounds. This has been fixed in the *very* soon to be released DW
MX 2004 7.0.1 updater.
Sorry for the inconvenience,
Randy
| |
| Al Sparber- PVII 2004-03-04, 9:28 pm |
| Randy Edmunds wrote:
> This has been fixed in the *very* soon to be released DW
> MX 2004 7.0.1 updater.
Should I stay up late tonight and wait for it :-?)
--
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Extensions - DesignPacks - Tutorials - Books
---------------------------------------------------------------------
The PVII Newsgroup | news://forums.projectseven.com/pviiwebdev
The CSS Newsgroup | news://forums.projectseven.com/css
---------------------------------------------------------------------
| |
| Randy Edmunds 2004-03-04, 10:28 pm |
| > Should I stay up late tonight and wait for it :-?)
Doh! Not quite that soon :)
But, be sure to set your alarm for early tomorrow! Just kidding...
Randy
| |
| Al Sparber- PVII 2004-03-04, 10:28 pm |
| Randy Edmunds wrote:
>
> Doh! Not quite that soon :)
>
> But, be sure to set your alarm for early tomorrow! Just kidding...
I can't wait to see the update release and I'm sure it will have been
worth the effort.
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |