Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2005, 07:00 PM   PM User | #1
mfeglae
New Coder

 
Join Date: Jan 2005
Location: Albuquerque, NM
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mfeglae is an unknown quantity at this point
Question Looking for a way to print two frames of six

My current website design consists of 6 frames, but when printing, I want only two of the frames to go to the printer. Is this possible? I would like our logo and contact info to print with the shown material...it seems like a reasonable request! All help is much appreciated!!
mfeglae is offline   Reply With Quote
Old 01-12-2005, 08:32 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
a link to ur site would help
_Aerospace_Eng_ is offline   Reply With Quote
Old 01-12-2005, 08:45 PM   PM User | #3
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
use different stylesheets for screen and print:

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

In your print CSS, assign "display: none" to the IDs you want to remain hidden.
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-12-2005, 09:45 PM   PM User | #4
mfeglae
New Coder

 
Join Date: Jan 2005
Location: Albuquerque, NM
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mfeglae is an unknown quantity at this point
Is this my only option? I have avoided style sheets for the whole setup...I was hoping I could just put in some code and have it work. If necessary, I will rework the site for css and do as suggested. I am not familar with css, but I will do whatever I need. I would really like this to print nicely.
mfeglae is offline   Reply With Quote
Old 01-12-2005, 09:50 PM   PM User | #5
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Assign an id to a frame:
Code:
id="navigation"
Tell the print style sheet not to display it:
Code:
<style type="text/css" media="print">
#navigation {
display: none;
}
</style>
chilipie is offline   Reply With Quote
Old 01-13-2005, 01:07 AM   PM User | #6
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
Quote:
Originally Posted by mfeglae
I have avoided style sheets for the whole setup...
Why on earth would you do that?! This is just the kind of stuff CSS was made for.
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-13-2005, 07:21 AM   PM User | #7
Eskimo
Regular Coder

 
Join Date: Jun 2002
Location: Stillwater Ok
Posts: 226
Thanks: 0
Thanked 0 Times in 0 Posts
Eskimo is an unknown quantity at this point
Ummm...

Six frames?
Wow.

How about a link? It helps us out a lot.
__________________
"Never offend people with style when you can offend them with substance."
--Sam Brown
Eskimo is offline   Reply With Quote
Old 01-13-2005, 08:32 AM   PM User | #8
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Talk about a wrong turn

You have "avoided stylesheets" but are using six frames to conjure up a page... *sigh*
Apart from the above CSS methods, I don't see any other way to just print two frames of six; this sort of problem is just one of the reasons why so very few sites still use frames nowadays.

Do yourself a very, very big favour and start learning about CSS right after reading this post; once you'll get the hang of it, you'll be amazed of its possibilities.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 01-13-2005, 02:11 PM   PM User | #9
mfeglae
New Coder

 
Join Date: Jan 2005
Location: Albuquerque, NM
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mfeglae is an unknown quantity at this point
OK, so I'm a bit embarrassed, but when I learned HTML a few years back, they weren't teaching CSS. I will look more into it and hopefully I can change around the site a bit without losing too much time. I appreciate the suggestions! Oh, and I would give a link to the site, but I have no where to put it up yet...it is replacing another terrible site! Thanks, again!
mfeglae is offline   Reply With Quote
Old 01-13-2005, 02:36 PM   PM User | #10
musher
Regular Coder

 
musher's Avatar
 
Join Date: Jan 2005
Location: Minnesota
Posts: 203
Thanks: 0
Thanked 0 Times in 0 Posts
musher is an unknown quantity at this point
I use the same methode as Chilly
This is some of the CSS from a page that is set up with 3 columns, header and footer.



CSS to set up 3 divisions (columns)
Code:
#leftcol{
 width:150px; 
 float:left; 
 position:relative; 
 margin-left:-150px; 
 margin-right:1px; 
 }
#maincol{ 
 float: left; 
 width: 100%; 
 position: relative; 
 margin: 0 -8px 0 -2px; 
 }
#rightcol{
 /*/*/ width:150px; /* hack keeps NN4 right column right? */ 
 float:right; 
position:relative; 
  margin-right:-150px; 
 margin-left:1px; 
}
CSS to turn off printing on left & right divisions (columns)
Code:
 /*printer styles*/ 
@media print{ 
/*hide the left column when printing*/
#leftcol{display:none;} 
#outer{border-left:0;} 

/*hide the right column when printing*/
#rightcol{display:none;} 
#outer{border-right:0;} 
}
__________________
Thanks
Jim M

"Lord, help me to become the person my dog thinks I am" - Dawn Ewing
"If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

www.huskyzone.com -- Woodland Siberians
musher is offline   Reply With Quote
Old 01-13-2005, 03:24 PM   PM User | #11
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
The world is changing... fast

Quote:
when I learned HTML a few years back, they weren't teaching CSS
I know... Although the first CSS recommendation was published in 1997, it took quite a few years for it to really get practical support by commonly used browsers; I started "internetting" round about 1998, learned to build table-laden, framed sites, picked up a good HTML book round about 2001, and found myself starting all over again.
I at first hesitated using CSS because of lack of support, only to find out that it was rapidly approving to a point at which it actually could be used in a practical way.

At any rate, you're always welcome in here for tips, advice, and a warm shoulder to cry out on.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 01-13-2005, 03:31 PM   PM User | #12
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Quote:
Originally Posted by musher
I use the same methode as Chilly
(I'm gonna do a Geoffers ) - it's chili not chilly .
chilipie is offline   Reply With Quote
Old 01-14-2005, 05:39 AM   PM User | #13
musher
Regular Coder

 
musher's Avatar
 
Join Date: Jan 2005
Location: Minnesota
Posts: 203
Thanks: 0
Thanked 0 Times in 0 Posts
musher is an unknown quantity at this point
Sorry Chilli but the temp out today is -35 so it's CHILLY
__________________
Thanks
Jim M

"Lord, help me to become the person my dog thinks I am" - Dawn Ewing
"If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

www.huskyzone.com -- Woodland Siberians
musher is offline   Reply With Quote
Old 01-14-2005, 02:10 PM   PM User | #14
mfeglae
New Coder

 
Join Date: Jan 2005
Location: Albuquerque, NM
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mfeglae is an unknown quantity at this point
Dang that's cold! It is 28 here and I thought that was cold...but I guess I'm spoiled! I've been in Albuquerque for over a year now, and I would not trade it for anything!! I moved from northern Michigan, so I feel the chill!
mfeglae is offline   Reply With Quote
Old 01-14-2005, 02:24 PM   PM User | #15
musher
Regular Coder

 
musher's Avatar
 
Join Date: Jan 2005
Location: Minnesota
Posts: 203
Thanks: 0
Thanked 0 Times in 0 Posts
musher is an unknown quantity at this point
WHAT mfeglae
You lived in northern Michigan and MOVED!
are you crazy or what I would give me 1st, 2nd and 3rd child to live in the U.P. (hehe). Actualy our main kennel is up in northern Michigan so some day I hope to move up there (they get a heck of a lot more snow then we do).
__________________
Thanks
Jim M

"Lord, help me to become the person my dog thinks I am" - Dawn Ewing
"If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

www.huskyzone.com -- Woodland Siberians
musher is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:15 PM.


Advertisement
Log in to turn off these ads.