Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
BrandonMUS #1
Dreamweaver hates my css media type
[Q]<style type="text/css" media="screen">
@import "/stylesheets/layout.css"; /* Hide from NN4 */
</style>
<link href="/stylesheets/print.css" rel="stylesheet" type="text/css"
media="print" />[/Q]
Does not display in Dreamweaver (Rending Mode is set to Screen), but works in
every browser and validates.
Dreamweaver reacts better to invalid code:
[Q]<style type="text/css" media="screen,print">
@import "/stylesheets/layout.css"; /* Hide from NN4 */
</style>[/Q]
My only idea is that it sees the invalid media type and assumes a media="all".
What does Dreamweaver want? I also tried not using the @import method and
using <link> tags for both screen and print. Anyone have any experience w/
this?
Thanks
Brandon
BrandonMUS Guest
-
Flash Media Server 2 with Dreamweaver
Hi, I have a few problems. Up to now we have gotten away with FLV files being progressively viewed through a webpage, since the traffic was low... -
FREEZE!!! My Computer Hates Plugins
Me again, with the new XP operating system that freezes when using Elements. Thanks to everyone for replying to my last post, and sorry for not... -
font type used within the dreamweaver application
Guys how can you change the font type within the dreamweaver application Its set to a font very hard to read, and it very small -
Someone who REALLY hates Amethyst
She is a stupid fat bitch called Sarah Balfour, who lives in Gerrards Cross, Bucks, UK. She is a quite a joke amongst people that know her. I... -
"Unable to find the plugin that handles this media type" - Shockwave
Can anyone help me with this please? In DreamweaverMX, I insert a shockwave file on the webpage, and when I click on play I get that message. it... -
Murray *ACE* #2
Re: Dreamweaver hates my css media type
What is invalid?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"BrandonMUS" <webforumsuser@macromedia.com> wrote in message
news:e9lneo$846$1@forums.macromedia.com...> [Q]<style type="text/css" media="screen">
> @import "/stylesheets/layout.css"; /* Hide from NN4 */
> </style>
> <link href="/stylesheets/print.css" rel="stylesheet" type="text/css"
> media="print" />[/Q]
> Does not display in Dreamweaver (Rending Mode is set to Screen), but works
> in
> every browser and validates.
>
> Dreamweaver reacts better to invalid code:
> [Q]<style type="text/css" media="screen,print">
> @import "/stylesheets/layout.css"; /* Hide from NN4 */
> </style>[/Q]
>
> My only idea is that it sees the invalid media type and assumes a
> media="all".
> What does Dreamweaver want? I also tried not using the @import method and
> using <link> tags for both screen and print. Anyone have any experience
> w/
> this?
>
> Thanks
> Brandon
>
Murray *ACE* Guest
-
BrandonMUS #3
Re: Dreamweaver hates my css media type
Media types must be seperated by a comma and a space. "screen,print" is
invalid whereas "screen, print" is valid in CSS. If a browser sees
"screen,print", I believe it will revert to the default "all". I would like to
keep my webpages without a stylesheet for handhelds, screenreaders, etc.
BrandonMUS Guest
-
Murray *ACE* #4
Re: Dreamweaver hates my css media type
Where do you see that media types must be separated by a comma and a space?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"BrandonMUS" <webforumsuser@macromedia.com> wrote in message
news:e9lpu5$ba0$1@forums.macromedia.com...> Media types must be seperated by a comma and a space. "screen,print" is
> invalid whereas "screen, print" is valid in CSS. If a browser sees
> "screen,print", I believe it will revert to the default "all". I would
> like to
> keep my webpages without a stylesheet for handhelds, screenreaders, etc.
>
Murray *ACE* Guest
-
BrandonMUS #5
Re: Dreamweaver hates my css media type
While technically the CSS2 Spec doesn't say it exactly, your CSS will not validate if you don't put a space after the commas. The examples in the CSS2 Spec hint at this.
BrandonMUS Guest
-
Murray *ACE* #6
Re: Dreamweaver hates my css media type
So it does (or doesn't) -
W3C CSS Validator Results for [url]http://murraytestsite.com/css-test.html[/url]
To work as intended, your CSS style sheet needs a correct document parse
tree. This means you should use valid HTML.
Errors
URI : [url]http://murraytestsite.com/css-test.html[/url]
a.. Line: -1
unrecognized media print,screen
Interesting that Eric Meyer says this (and only this) -
@import url(...) <media>;
where media is "A comma separated list of target media. This portion of the
rule is optional."
and he further gives this as an example (of the @media syntax) -
@media screen,print {
* { line-height: 1.25; }
}
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"BrandonMUS" <webforumsuser@macromedia.com> wrote in message
news:e9m0or$jrt$1@forums.macromedia.com...> While technically the CSS2 Spec doesn't say it exactly, your CSS will not
> validate if you don't put a space after the commas. The examples in the
> CSS2 Spec hint at this.
Murray *ACE* Guest



Reply With Quote

