473,388 Members | 1,207 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,388 software developers and data experts.

Print sheets

I have made a style sheet that determines which div's display and which not
for use in a website.
However when I click on the link the invokes the sheet it still prints
everything on the page, but not how it is laid out on the page.
To see it not work go to www.clickatdepaul.org/test/tester.htm
I would appreciate comments on it.
Gary
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004
Jul 20 '05 #1
3 1956
"Gary Finnigan" <gj********@talk21.com> wrote:
I have made a style sheet that determines which div's display and which not
for use in a website.
However when I click on the link the invokes the sheet it still prints
everything on the page, but not how it is laid out on the page.
To see it not work go to www.clickatdepaul.org/test/tester.htm


Your style sheets are all marked as being for media="screen,
projection" therefore they should not be used when printing.

You also have a syntax error in your main stylesheet.
http://www.clickatdepaul.org/test/test.css

It starts:
@media screen
a:link {

To use @media you should enclose all the styles for that media inside
{}.

@media screen {
a:link {styles}
selecter {styles}
} /* end of screen media styles */

Why are you putting an @media screen section inside a stylesheet that
is marked as being media="screen projection"? Are you trying to mark
some styles as being only for screen and not for projection?

There are other syntax errors as well:
http://jigsaw.w3.org/css-validator/v...1&profile=css2

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
Quoth the raven named Gary Finnigan:
I have made a style sheet that determines which div's display and
which not for use in a website. However when I click on the link
the invokes the sheet it still prints everything on the page, but
not how it is laid out on the page. To see it not work go to
www.clickatdepaul.org/test/tester.htm I would appreciate comments
on it. Gary
Instead of this:

<link rel="alternate stylesheet" type="text/css" href="test3.css"
title="print" media="screen" />

Use this:

<link type="text/css" rel="stylesheet" href="test3.css" media="print" />
Outgoing mail is certified Virus Free.


You cannot be sure...

--
-bts
-This space intentionally left blank.
Jul 20 '05 #3
On Fri, 2 Apr 2004 12:44:15 +0100, Gary Finnigan <gj********@talk21.com>
wrote:
I have made a style sheet that determines which div's display and which
not for use in a website.
However when I click on the link the invokes the sheet it still prints
everything on the page, but not how it is laid out on the page.
To see it not work go to www.clickatdepaul.org/test/tester.htm
I would appreciate comments on it.


You've already been told that you need to correctly label your style
sheets. However, you haven't been told that the style sheet switcher
you're using is badly written. Moreover, the system in general is not
intuitive. When I was using it in Opera, I refreshed the page expecting to
get the original layout back after viewing the print version, and I did.
When I tried the same in IE, I did not. The solution was to change the
text size, which is not at all related to reverting from a printing layout.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #4

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

Similar topics

4
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
2
by: june | last post by:
Hey, I've noticed that all my longer pages are getting chopped up when they print. In other words page breaks are not automatically being inserted and instead words at the end or beginning of a...
1
by: Rajah | last post by:
I have a webpage which I need to format for printing. The webpage contains a Confirmation and an Acknowledgement. Users should be able to print the Confirmation and the Acknowledgement separately....
98
by: Pamel | last post by:
I know this must have been asked elsewhere, but I cannot find it. There is a piece of text on my web page that I don't want browsers to resize. IE won't resize it if I specify the size in px, but...
0
by: acarrazco | last post by:
Hello, I am totaly new to VBA and I'm trying to modify a macro that was given to me but it doesn't seem to be working. I'm trying to extract data from three excel spreadsheets, put it into a combined...
9
by: xprotocol | last post by:
Trying to print a web page that scrolls to right a bit. I would think IE would page break by default when it gets to the end of the sheet, but it doesn't, it just cuts off the print. This only...
10
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....
1
by: gangui | last post by:
Hello, I need to print two frames in two sheets through javascript. I've tried to : function print() { top.window.focus();
0
by: deve8ore | last post by:
Hello, I have a workbook with ~ 20 sheets, all which upload with different data every week. We have some "old school" managers that are still requesting hard copies of each sheet.... problem for me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.