473,555 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Content visible onlt to print stylesheets

Hi,

A website I work on has a print stylesheet to strip navigation and things out
of a page, and changes the fonts and various bits and pieces here and there.
What I'd also like is something small (a footer, perhaps) that says something
along the lines of 'you are viewing a printed version of [TITLE], available
at [url]'. I know I can do this by just adding the content and using display:
none for the screen CSS, but then it becomes visible in text browsers, which
I don't want. It would also have to work in IE, which means I couldn't use
the :before or :after pseudo-elements...

Is there any way to achieve this?

--
Hurewitz's Memory Principle:
The chance of forgetting something is directly proportional to ..... to
......... uh ..............
Jul 20 '05 #1
2 1528
"la_haine" <p.*****@kent.a c.uk> wrote in
comp.infosystem s.www.authoring.stylesheets:
A website I work on has a print stylesheet to strip navigation and things out


http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2
Stan Brown <th************ @fastmail.fm> wrote in
news:MP******** *************** *@news.odyssey. net:
"la_haine" <p.*****@kent.a c.uk> wrote in
comp.infosystem s.www.authoring.stylesheets:
A website I work on has a print stylesheet to strip navigation and
things out


http://www.cs.tut.fi/~jkorpela/usenet/xpost.html


I cancelled this post immediately due to the typo in the subject line, and
re-posted it with the correct spelling - I guess your news server didn't
honour the cancel request. There wasn't any cross-posting involved.

--
'I'm not racist: I have to spend such a large amount of my time hating
individual people that piss me off that I have no time to hate entire groups
of people that I haven't met.'
- Jemaleddin Cole
Jul 20 '05 #3

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

Similar topics

2
12011
by: Catherine Lynn Wood | last post by:
I need to know how to overlap DIV content within 'relative' associated rendering. I am building div layers in the middle of a page and when I set positioning to absolute in the CSS, it references back to 0,0 on the entire page. If I set it to relative, the div layers will not overlap as needed. I prefer to avoid javascripting an 'innerHTML'...
8
3936
by: la_haine | last post by:
Hi, A website I work on has a print stylesheet to strip navigation and things out of a page, and changes the fonts and various bits and pieces here and there. What I'd also like is something small (a footer, perhaps) that says something along the lines of 'you are viewing a printed version of , available at '. I know I can do this by just...
1
2237
by: ptg_abhishek | last post by:
Hullo, I tried the print method provided by javascript to print the frame in current focus. Only the visible content is printed, any hidden content in the current frame does not appear in the printout. If you know some possible work-around, please do let me know. regards. -abhishek.
3
1895
by: jnm | last post by:
How can I avoid the content of <meta name="Microsoft Border" content="b, default"> is printed, when printing by means of <link rel="stylesheet" href="../print.css" type="text/css" media="print" /> I expect it to be possible with som script in the print.css????
8
5878
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic...
0
955
by: Dedona | last post by:
Hello I have the same problem as a few others, but I didn't see a solution. I really need help. When I go to print anything from the web it prints the full HTML instead of the displayed text. I need to get this resolved before I buy any tickets. It started after changing from AOL to Qwest Broadband. I have un-installed the printer and then...
0
1189
by: Germaris | last post by:
My client says it would much more enjoy his Flash Website if there was the capability to print the FULL result of the searches he performs. The result (a Variable returned by the server) is always a text and is displayed in a Dynamic TextField which has a ScrollBar attached. For the time being, only the VISIBLE content of this field is printed....
10
2755
by: Ed Jay | last post by:
I do not want to load two style sheets for screen and print media. I'm having difficulty grasping the use of the @print statement, or its syntax. Would someone please provide a simple explanation. For example... If I have a style sheet specifying media="all," is the following correct syntax to center text for printing, but not for screen...
8
3608
by: Zhang Weiwu | last post by:
hello. Is it possible to design CSS in the way that content in <inputare not visible in print out (a.k.a. value of <inputnot visible) while the border remain visible? trial: input { border: thin solid black;
0
7621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7542
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7824
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8060
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7587
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7903
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5170
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
863
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.