Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello, I'm having trouble with the printable version of my webpage. From what I've gathered the issue is with the css files and not with couch. However, the problem seems to be that all of the css is lost when the page is printed. If anyone could help me out it would be much appreciated! Thanks

Landon
Hi and welcome Landon.

Make sure the css file is being downloaded correctly and your browser is not receiving a 404 error.

You probably just need to specify what media types the stylesheet is intended for: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-media
Code: Select all
<link rel="stylesheet" type="text/css" href="/css/screen.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/css/print.css" media="print"/>
<link rel="stylesheet" type="text/css" href="/css/both.css" media="screen, print"/>

Oh... and you can alternatively use the @media rule within a stylesheet if you prefer it: https://developer.mozilla.org/en-US/docs/Web/CSS/@media
Thank you very much! I'll give this a shot.
3 posts Page 1 of 1
cron