/    Sign up×
Community /Pin to ProfileBookmark

Trouble printing form

I have a form that I created in Frontpage and I would like to have it printed. But I would like to have it printed in a text format, i.e. without the header graphics and etc. Is there an easy way to do this?

Thanks
Steven?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@iamlucky13Aug 10.2004 — The old way is to create a clone of the page but just leave out that stuff and create a link to it. A better way is to use an alternate style sheet, as discussed below.

[URL=http://www.alistapart.com/articles/goingtoprint/]A List Apart article [/URL]

If you only have experience in FrontPage, the article will involve some stuff you're probably not familiar with (CSS).
Copy linkTweet thisAlerts:
@stomlinauthorAug 10.2004 — Okay, looking at the css information on the link you sent was helpful. Now where do I put that information? Does it go somewhere in the html itself??
Copy linkTweet thisAlerts:
@iamlucky13Aug 10.2004 — You can put in the head of your html like this:
[CODE]<html>
<head>
<title>Page Title</title>
</head>
<style type="text/css" media="print">
.noprint { display: none; }
</style>
</head>
rest of html...[/CODE]

Setting media to print tells the browser to only use that style when outputting to the printer. ".noprint" means the property affects any html element where the class="noprint". Example
[CODE]<img src="image.jpg" class="noprint">[/CODE]

A little more complex but good for large web sites is an external style sheet. Replace the style tags and everything in between with
[CODE]<link rel="stylesheet" type="text/css" media="print" href="stylesheet.css">[/CODE]
Then in a seperate file named stylesheet.css, you write
[CODE].noprint {
display:none;
}[/CODE]

and you can define other things in the file as well, like font colors, borders, backgrounds, etc.

[URL=http://www.htmlgoodies.com/tutors/ie_style.html]Here's a good introduction to CSS[/URL]

[URL=http://www.htmlgoodies.com/beyond/css.html]Here's more information on stylesheets by the same author[/URL]
×

Success!

Help @stomlin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...