473,396 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Want Print CSS to simply disable all styles

Hi,

I've designed a site at
http://www.welsh-kitchens.com

When all styles are disabled it looks like this
http://www.welsh-kitchens.com/index-nocss.shtml

I've tried creating a printing Style Sheet by using "display:none" for
various parts but the results have been dismal. I've decided I'd like
simply to disable all styles for the printing version for now at least.

How can I disable all screen styles for a print style sheet without
explicitly giving them all different values in a Print CSS?

Thanks,

Jeremy
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeremy Clulow,
Webs Wonder Design
www.webswonder.co.uk
je****@websNOSPAMwonder.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~
Mar 23 '06 #1
2 2356
Deciding to do something for the good of humanity, Jeremy Clulow
<je****@websNOSPAMwonder.co.uk> declared in
comp.infosystems.www.authoring.stylesheets:
How can I disable all screen styles for a print style sheet without
explicitly giving them all different values in a Print CSS?


You've got it backwards - just specify that your screen stylesheet only
applies to screen (and any others desired).

E.g.
<link rel="stylesheet" type="text/css" href="stylesheet.css"
media="screen,projection">

Or if you prefer, in the stylesheet:
@media screen,projection {
...styles here...
}

--
Mark Parnell

Now implementing http://blinkynet.net/comp/uip5.html
Mar 23 '06 #2
Mark,

Many thanks. I really am a plonker.

I always know that when I finally resort to posting a NG having failed to
find a solution via an extensive Search Engine, I am about to humiliate
myself.

I've done it again. If God is listening, perhaps he would wind back time 6
hours and give me a change to save my blushes.

Cheers,

Jeremy
On Thu, 23 Mar 2006 15:13:59 +1100, Mark Parnell
<we*******@clarkecomputers.com.au> wrote:

|| Deciding to do something for the good of humanity, Jeremy Clulow
|| <je****@websNOSPAMwonder.co.uk> declared in
|| comp.infosystems.www.authoring.stylesheets:
||
|| > How can I disable all screen styles for a print style sheet without
|| > explicitly giving them all different values in a Print CSS?
||
|| You've got it backwards - just specify that your screen stylesheet only
|| applies to screen (and any others desired).
||
|| E.g.
|| <link rel="stylesheet" type="text/css" href="stylesheet.css"
|| media="screen,projection">
||
|| Or if you prefer, in the stylesheet:
|| @media screen,projection {
|| ...styles here...
|| }
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeremy Clulow,
Webs Wonder Design
www.webswonder.co.uk
je****@websNOSPAMwonder.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~
Mar 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alvo von Cossel I | last post by:
hi, i have an application with the visual styles disabled (i just haven't put application.enablevisualstyles in the Static Void main) however in my options menu for my application, you can...
2
by: Alvo von Cossel I | last post by:
hi, i have an app with a lot of stuff including an optios form. 1 of the options is disabling the xp visual styles. i know how to enable them but not how to disable them. has anyone got an...
0
by: Phil | last post by:
When I print an aspx page built in Asp.Net 2.0 (c# - Visual Studios 2005) the resulting print page is cut-off. Anything that spans too far to the right, or to far down is clipped - multiple pages...
2
by: Smokey Grindle | last post by:
Is there a way to add a print media css style to a theme? so i can have it like this <link rel="stylesheet" type="text/css" media="print" href="print.css" /> instead of just a normal css style...
10
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a...
0
by: Karthik | last post by:
I use a crystalreportviewer control (Version 11.5) in a ASP.Net web application to render the output from Business Objects server. I set the cssfilename property of the control to point to my...
1
by: tdartt | last post by:
Howdy! I'm fairly new to using css. I have two style sheets: <LINK href="printstyle.css" type="text/css" rel="stylesheet" media="print"> Which has (for example): .dgAltLine { display: none;...
0
by: moti far | last post by:
hi, i use stylesheet to design the plot of the print page. The page works with https(ssl) protocol. this my code: <html> <head>
1
by: cryogeneric | last post by:
Hi, I'm writing an ASP application that can display PDF files in a frame. The user can save or download the PDF, but I need to know when they do this so I can add an activity record to my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.