View Full Version : Looking for a way to print two frames of six
01-12-2005, 08:00 PM
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!! :(
01-12-2005, 09:32 PM
a link to ur site would help
01-12-2005, 09:45 PM
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.
01-12-2005, 10:45 PM
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. :rolleyes:
01-12-2005, 10:50 PM
Assign an id to a frame:
Tell the print style sheet not to display it:
<style type="text/css" media="print">
01-13-2005, 02:07 AM
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.
01-13-2005, 08:21 AM
How about a link? It helps us out a lot.
01-13-2005, 09:32 AM
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.
01-13-2005, 03:11 PM
:o 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!
01-13-2005, 03:36 PM
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)
margin: 0 -8px 0 -2px;
/*/*/ width:150px; /* hack keeps NN4 right column right? */
CSS to turn off printing on left & right divisions (columns)
/*hide the left column when printing*/
/*hide the right column when printing*/
01-13-2005, 04:24 PM
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. :thumbsup:
01-13-2005, 04:31 PM
I use the same methode as Chilly
(I'm gonna do a Geoffers :p ) - it's chili not chilly ;) .
01-14-2005, 06:39 AM
Sorry Chilli but the temp out today is -35 so it's CHILLY :p
01-14-2005, 03:10 PM
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! :D
01-14-2005, 03:24 PM
You lived in northern Michigan and MOVED! :eek:
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).
01-14-2005, 11:42 PM
Wow! That is some rough, tough weather you enjoy! I'm not sure that I miss it yet, just seemed a bit too much after spending four years in college in West Virginia. But then again, my hobbies don't include sled riding with those beautiful dogs! My labs aren't really the cold weather types!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.