Printing only a layer within a cell

  • Thread starter Thread starter Guest
  • Start date Start date
Manny said:
Hello,

Our company has a website that contains a online mail in order form
inside a layer. I want to be able to only print the order form. What
do I need to do? The link is posted below.

Thanks for your time.

Manny Avila

http://www.avilagold.com/template_2.html

Create a file named print.css on your root folder with this content
..hidden {visibility: hidden ;}

In the <head> of your HTML, add
<link rel="stylesheet" type="text/css" media="print" href="print.css" />

In the body of your html, place everything *except* the form in <div
class="hidden"> like this:
<div class="hidden">
<!-- HTML that is before the form -->
</div>

<div>
<!-- <form> in here -->
</div>

<div class="hidden">
<!-- HTML that is after the form -->
</div>

This will hide everything except the form but only when printing
 
Create a file named print.css on your root folder with this content
..hidden {visibility: hidden ;}

Thanks Trevor,

I'm very new to this. I'll go one line at a time. When you say content do
you mean the "order form"? How do I make the visibility :hidden?
 
Create a page w/ just your order "form" as say order.htm
Then on the main page include that form page
(FP include page - Insert Web Component Include Page)
- and then create a link to the printable form page (order.htm)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hello,
|
| Our company has a website that contains a online mail in order form inside a
| layer. I want to be able to only print the order form. What do I need to do?
| The link is posted below.
|
| Thanks for your time.
|
| Manny Avila
|
| http://www.avilagold.com/template_2.html
 
That will work but it may make for a pretty messy page.

Also, don't put layers into table cells! Grrr.... 8) I see three of them
like that on this page.
 
Murray said:
That will work but it may make for a pretty messy page.

Also, don't put layers into table cells! Grrr.... 8) I see three of
them like that on this page.

Fair comment , Muuray

To be quite honest, I didn't look too closely at the page the OP referred us
to.

I just gave a solution which I was farily sure would work.

Stefan's suggestion of an include page is neater. Of course, because my
server doesn't support SSI, I didn't think of that.

I understand FP will still copy include pages into one's web for servers
without SSI, but I haven't tried it yet. (One reason I haven't made much
effort to remove the frames from my site - replacing them by includes would
mean relying on FP to update my pages, whereas I do a lot of updating in my
favourite text editor, UltraEdit.)
 
FYI: FP Includes are not SSI, they are included when the page is saved.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Stefan's suggestion of an include page is neater. Of course, because my
server doesn't support SSI, I didn't think of that.

Trevor, it's time both you and your host came into the 21st century. Get
SSI, and dump those frames! 8)
 
Back
Top