howto hide menu from print page

hi i would like to print my webpage without the menu

I gues the first step is this
<link rel="stylesheet" type="text/css" media="print" title="Whatever" href=http://www.webdeveloper.com/forum/archive/index.php/"print-styles.css">

but what do i write in the print-styles.css to hide the menu ?#menu {display:none}thxthis will help with a larger scale of printing. would be good for you to read over :)

<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/goingtoprint/Does">http://www.alistapart.com/articles/goingtoprint/Does</a><!-- m --> media="print" work with IE6 ?

This works when i make a print link to a seperate print friendly page

--------html page-----------
<style type="text/css" media="all">@import url("print.css");</style>
----------------------------

When i do this en click on the print preview from IE6 it doesn't work

-------html page-------------
<style type="text/css" media="print">@import url("print.css");</style>
-----------------------------

-------css stylesheet-----------
@print{
css code
}
--------------------------------

Is there something i did wrong ?just use
@print{
#menu {display:none}
}yes i did that but it does not work ?

Anybody know why ?it only works when i use media=alltry just using <link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"print.css" media="print"> instead<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"print.css" media="print">

works when i do print preview in IE !?

But why does this not work ?

<style type="text/css" media="print">@import url("print.css");</style>

I like using the <style> tag because it has the same logic as the <script> tag :)

Can you also use <link> to refer to a script ?

for example like this

<link rel="script" type="text/java" href=http://www.webdeveloper.com/forum/archive/index.php/"script.js">i found what IE did not like. It was the @print{} it did not understand. If i remove @print making two seprated css files one print.css one all.css without @print{} they both work.Originally posted by gert cuykens
Can you also use <link> to refer to a script ?

for example like this

<link rel="script" type="text/java" href=http://www.webdeveloper.com/forum/archive/index.php/"script.js">

i believe you can though i am not 100% positive. You could always give it a quick try :DPutting @print in a css document definitely will not work. It should be @media print.thx @media print works :);)
 
Back
Top