NameSilo

Copyright footer

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

M Paul

New Member
Impact
0
I am wondering if I can set up the articles on my web site to have a copyright notice appear on every page, in case it is printed. In going into my site

http://www.loveofchrist.info

and clicking on an article, and then Print Preview, it can be noted that the name of the article and the web address appear in a small header at top, and the page number, date appear in a footer.

Is there a way to control what goes into these headers and footers, and would I want to put the copyright notice there???

Thank you. M Paul
http://www.loveofchrist.info
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Those are user customisable, depending on your browser. You can't control what goes in there. I have they nearly all blank on my machines. About the best you can do is put a small copyright message somewhere on the page
 
0
•••
There is noway to control how a document is printed. You can create a css file for printing, <link media="print" href="printer.css" type="text/css"> but it won't add a heder or footer. If you need a copyright, it should be on everypage.

You can include a footer in every page using SSI. Google for "server side includes".
 
0
•••
Thank you tres and primacomputer for the responses.

Paul
 
0
•••
Here's what you can do:

insert a "copyright" div in your html file:
Code:
<div id="copyright">Your copyright info</div>

in the <style> tag of your page, insert the style:
Code:
#copyright {
display:none;
}
this will keep your copyright info from showing in the page while viewing it on the screen.

now, in the style sheet you've created for print:
Code:
<link media="print" rel="stylesheet" href="printer.css" type="text/css">
insert this:
Code:
#copyright {
diplay:block;
}
this will ensure your copyright info will be visible on the printed page.


:!: One more thing. You should use an external style sheet for your page, instead of writing it in the page itself. It's more flexible when you have many pages in your site.

Best regards,
Dan Burzo.
 
Last edited:
0
•••
danburzo said:
Here's what you can do:

insert a "copyright" div in your html file:

That's a nice (KISS) solution.
 
0
•••
Dear Dan,

Thank you for the suggestions. However, if I use a display none technique, then it seems to me the footer has to appear where normally text would appear. That means I have to determine where each browser sets a page break for printing to have the copyright appear as a footer on every page, which varies according to each browser, or I could manually set the page breaks. With the content of each page changing with the positioning of each footer, this approach would be a great deal of work, for a site having over 200 pages that could be printed, which I hope will grow to 2000 pages in two to four years.

But, your suggestion would be practical on smaller sites.

In reference to my linking my style sheets-- I do for the articles in each section. Only the home page has the css styles in the same page as the html. However, if only the home page is using these css styles, what is the advantage of putting them at a separate location to be linked to???

Thank you,
Paul
 
0
•••
Does your site use a footer on each page? if so i would:

Create a html file saying copyright blah blah blah....

then use the include function on the footer file

<? include("copyright.html"); ?>

Might work depending on what your site uses
 
0
•••
Sorry for not quite understanding what the problem was. I'm afraid I can't help you, I have no idea how to insert a footer in every printed page.

M Paul said:
In reference to my linking my style sheets-- I do for the articles in each section. Only the home page has the css styles in the same page as the html. However, if only the home page is using these css styles, what is the advantage of putting them at a separate location to be linked to???

Didn't know you had it only on your index page. There is no great advantage in this case, but it's good practice to separate the content from the formatting, no matter the circumstances.In my opinion, creating an external style sheet is easier to manage and update.
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back