each web-page contains header and footer. if the web-page contains more
then one page i want to print its header and footer to each page. but
header is only printed on first page and footer on last page. how to do
this? how can i find out how many paper is needed? 14 3050
Markus Olderdissen wrote:
each web-page contains header and footer. if the web-page contains more
then one page i want to print its header and footer to each page. but
header is only printed on first page and footer on last page. how to do
this?
In theory, I think that position: fixed for a print media style sheet will
do it. In practise nothing supports this.
how can i find out how many paper is needed?
You can't. You don't know what the font size will be, what the paper size
will be, or what the margins will be.
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
On Thu, 03 Aug 2006 00:32:12 +0200, David Dorward <do*****@yahoo. com>
wrote:
Markus Olderdissen wrote:
>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet
will do it. In practise nothing supports this.
That's correct. From
<http://www.w3.org/TR/CSS21/visuren.html#ch oose-position>:
"In the case of the print media type, the box is rendered on every page,
and is fixed with respect to the page box"
I don't know of any browser that supports this.
In CSS3, you will have fancier stuff at your disposal, like page numbers
in running footers. See <http://www.w3.org/TR/css-print/#s.8.4>. But it
will be some time before you can really use this.
--
Garmt de Vries-Uiterweerd
David Dorward <do*****@yahoo. comwrote:
>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
--
Spartanicus
Spartanicus <in*****@invali d.invalidwrote:
>>In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
And FF
--
Spartanicus
On Thu, 03 Aug 2006 09:03:07 +0200, Spartanicus <in*****@invali d.invalid>
wrote:
David Dorward <do*****@yahoo. comwrote:
>>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
Quite right. I had never noticed this. Can't say it surprises me, though :)
--
Garmt de Vries-Uiterweerd
On Thu, 03 Aug 2006 09:03:07 +0200, Spartanicus <in*****@invali d.invalid>
wrote:
David Dorward <do*****@yahoo. comwrote:
>>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
I created a test page <http://www.phys.uu.nl/~gdevries/test/fixed/>, and
it seems that the position: fixed works fine, but the problem is that the
fixed-positioned element overlaps the normal text, and it seems that @page
{ margin-top: 5em; } doesn't work. But perhaps I'm doing something wrong...
--
Garmt de Vries-Uiterweerd
"Garmt de Vries-Uiterweerd" <ga**********@g ooglemail.comwr ote:
>>>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
I created a test page <http://www.phys.uu.nl/~gdevries/test/fixed/>, and it seems that the position: fixed works fine, but the problem is that the fixed-positioned element overlaps the normal text
Working as designed, absolutely positioned elements are not in the flow.
--
Spartanicus
On Thu, 03 Aug 2006 12:11:41 +0200, Spartanicus <in*****@invali d.invalid>
wrote:
"Garmt de Vries-Uiterweerd" <ga**********@g ooglemail.comwr ote:
>>>>each web-page contains header and footer. if the web-page contains more then one page i want to print its header and footer to each page. but header is only printed on first page and footer on last page. how to do this?
In theory, I think that position: fixed for a print media style sheet will do it. In practise nothing supports this.
Opera supports this
I created a test page <http://www.phys.uu.nl/~gdevries/test/fixed/>, and it seems that the position: fixed works fine, but the problem is that the fixed-positioned element overlaps the normal text
Working as designed, absolutely positioned elements are not in the flow.
Yes, that's correct. The positioning of the fixed header works the way it
should. But a header overlapping normal text is not what you want in a
practical situation, so you need a way to let the normal text begin a bit
lower, so it makes space for the header. Something like this could do the
trick:
@page { margin-top: 3cm; }
h1 { position: fixed; top: -3cm; }
But the @page rule doesn't seem to work in Opera (9.01). Unless, as I
said, I'm doing something wrong, but I don't think I am.
--
Garmt de Vries-Uiterweerd
Wed, 2 Aug 2006 23:00:55 +0200 from Markus Olderdissen
<ms****@pravec. de>:
each web-page contains header and footer. if the web-page contains more
then one page i want to print its header and footer to each page. but
header is only printed on first page and footer on last page. how to do
this? how can i find out how many paper is needed?
You're asking us how to build a house out of water. You can't --
water is not a suitable medium for building houses.(*)
If you want to design your visitor's entire printed page, HTML is the
wrong medium. Use PDF -- with all the problems that brings.
The right answer is, don't be such a control freak. Deliver content,
and let the user's browser do its job if the user even wants to
print.
(*) Not even in the far north, since global warming, for which that
clown in the White House will find a place in the lowest circle of
Hell.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You: http://diveintomark.org/archives/200..._wont_help_you This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shiz |
last post by:
I currently have a Form with Option buttons (to give you the option of
sorting by name, or by Field, etc), these are referenced in a module
which then formats the report contingent on the option chosen (i.e.
the title changes to say "Sorted by Name" or "Sorted by Field"). For
one of the options, "Sort by Field" I would not only like to have them
sorted by Field alphabetically, but I would like to Group them and
have a Group Header and...
|
by: John Crowley |
last post by:
I keep running into this over and over again...
I want a block server control that renders a header and footer, and child
controls in between.
But I don't want a templated control, for the following reasons:
1) Render blocks are not allowed inside a templated control.
2) I want the inner controls scoped at the parent aspx (or ascx), not at the
template naming container.
This type of control would be ideal for website headers and...
|
by: LilBuh |
last post by:
hi there :)
i ve been looking for some time a way to print an html file from vb.net
i came up with this code for printing and removing the header and footer
from IE
then once the printing is done restore the original header and footer
Imports Microsoft.Win32
Private WithEvents myprocess As Process
Private OldHeader As String
|
by: LilBuh |
last post by:
Hello :)
this is a repost... i ve been looking for a way since last week ...
i have a template html file that i modify from my code... i need to print
this file without IE's Header and Footer
or any print dialog then once the printing's done... restore the original
Header and footer
but here's what happens:
- save the current header and footer
|
by: Neil Jarman |
last post by:
Hi,
I would like to allow users to print a page, but I want to suppress the
header and footer that appear by default.
I gather its done with a style sheet.
Please advise.
Many Thanks,
| |
by: xkeops |
last post by:
Thinking of creating a website, most of the pages will have a general
toolbar
menu, a content and a footer.
The content will be the only one who's gonna change but the rest
(header,footer)
will remain the same.
I am interested to know your opinions/suggestions in finding an easy
way of doing it.
In asp one could have something like this:
|
by: Grischa Brockhaus |
last post by:
Hi,
I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the
bottom using fixed height and a content layer using what's left of the browsers window.
So my header div is defined at top:0; height:40px , my footer is defined as bottom:0; height:40px
and the content is defined as top:40px;bottom:40px;
This works very well with firefox but doesn't work with IE, as IE ignores the bottom statement...
|
by: srk |
last post by:
hi to all,
i need some help , my problem is that i have to generate a
word document withe the data from data base and it should be displayed
as tables in word and i have to insert some header and footer in word
along with the page number. i got the code for generating tables and
it is fine now i am trying for header and footer but i am failing
here. i am sending my code , just check it.
StringBuilder sbTop = new StringBuilder();
|
by: KoosHopeloos |
last post by:
L.S.,
I'm trying to make a layout which is completely fixed in width and
height if needed by using three divs rows (header, content, footer)
which have each 3 div again to be able to play around better with the
webdesign.
The problem is that I need the content div row to nudge up
automatically to the header div row, independantly of the header
height. The same goes for the footer/content div row.
|
by: Noorain |
last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me.
my coding are as below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |