Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Jan 2005
    Location
    Albuquerque, NM
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    a link to ur site would help

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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.

  • #4
    New Coder
    Join Date
    Jan 2005
    Location
    Albuquerque, NM
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    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
    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>

  • #6
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Stillwater Ok
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #9
    New Coder
    Join Date
    Jan 2005
    Location
    Albuquerque, NM
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #10
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The world is changing... fast

    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

  • #12
    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
    Quote Originally Posted by musher
    I use the same methode as Chilly
    (I'm gonna do a Geoffers ) - it's chili not chilly .

  • #13
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #14
    New Coder
    Join Date
    Jan 2005
    Location
    Albuquerque, NM
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #15
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •