navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Print without the footer and the header

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Print without the footer and the header
Page: [1]
 
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
Print without the footer and the header - 4/14/2007 6:52:14   
Hi to all ,
I am traying to print page without the footer and the header.

i add this script to print.css

#header
{ display: none;}
#footer
{display: none; }

but with no luck...
thenks
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 7:52:47   
Are you adding the rules in a print stylesheet?

<link rel="stylesheet" type="text/css" media="print"  href="yourstylesheet.css" />




_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 10:37:00   
Hi,
i add this to the print page not on the css page.

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

(in reply to Tailslide)
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 10:56:35   
Hi again

Well adding such rules to the print stylesheet usually works for me - they may well be overridden if you have rules within the markup itself though. Could we see a link to the page to check what the issue might be?

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 11:18:53   
Hi,

this is a system inside company so it is secured.

i tried this code on a blank page and it steel prints the footer and the header.


(in reply to Tailslide)
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 11:43:59   
Ok can we see all your markup?

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 12:04:37   
Wath do you meen by markup?

is it the css code?

(in reply to Tailslide)
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 12:13:42   
No the markup on the HTML page itself - everything from the DOCTYPE to the closing body tag. That way we can see if there's something conflicting in there.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to yaronbb)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 12:46:56   
You're telling the page not to print the header and the footer but you're not identifying them anywhere in your page.

I've looked through the code you posted and nowhere can I see

id="header"

or

id="footer"

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 12:49:09   
Ok how do i do it?

(in reply to jaybee)
womble

 

Posts: 5461
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 14:01:34   
If the header and footer are in one of the include files you're calling, we also need to see the markup for those include files as well. Given that markup as is and those two stylesheet rules, it's impossible to guess what might be causing the issue without seeing the actual code for the header and footer.

_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to yaronbb)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 14:09:21   
To use those you have to lay your page out using css. Is the page accessible on the web? If so give us a URL and we can look at it.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to womble)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 14:10:40   
Ok didnt explain it clearly.

When i print this page on the buttom of the page the site address is printed.

How can i remove it automatically without changeing the definition in the brwoser

(in reply to womble)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 14:12:59   
Ahhh Ok completely different. I don't think you can. That's controlled by the user's browser so even if you could stop it doing it in yours, it wouldn't work in mine.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: Print without the footer and the header - 4/14/2007 14:15:13   
Ok thenks for the help

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Print without the footer and the header
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts