hankknight
asked on
CSS media type for all except print
Hello,
I understand that there are 7+ media types for CSS.
I want a special stylesheet for print but all other media should use the same stylesheet.
<style type="text/css" media="print">@import "print.css";</style>
<style type="text/css" media="all except print">@import "main.css";</style>
I understand that there are 7+ media types for CSS.
I want a special stylesheet for print but all other media should use the same stylesheet.
<style type="text/css" media="print">@import "print.css";</style>
<style type="text/css" media="all except print">@import "main.css";</style>
ASKER
Thanks for the idea R7AF but no, your idea loads BOTH style sheets for the print version.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<style type="text/css" media="print">@import "print.css";</style>
<style type="text/css" >@import "main.css";</style>