Isolating a page element for print

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Isolating a page element for print

    I'm wondering if it's possible to achieve the following via css-- ie. with a
    style sheet for printing-- or via javascript:

    I've constructed a table-based site-- for compatibility with older browsers--
    that basically contains a header, footer, left-hand navigation pane and a
    content/body pane. I'm wondering if it's possible to code the site in such a
    way that when a user opts to print any given page, ONLY the content/body
    section appears on the printed page, thereby "stripping" this section of the
    other page elements to become the sole printed element. My reasoning is that
    unless the page is fitted to the printing window/page (as in Firefox), part of
    the content pane will be cut off (as in IE 6, which of course has pathetic
    printing functionality) when attempting to print.

    Another option, if such a 'direct-to-print' concept is not possible, is to
    create a "Print this page" link, that would effectively isolate the content
    section in a pop-up window that could then be printed. I would imagine that
    this would be achieved by JavaScript, but I would need direction with this as
    well.

    Any assistance and/or suggestions would be greatly appreciated;

    Thanks.

    npish Guest

  2. Similar Questions and Discussions

    1. Location element in the Web.config file. Allow System Admin whole directory, allow others specific page
      Hello. I am developing an ASP.net C# application using forms authentication. I have a directory ManageUsers and I want all pages in that...
    2. PRINT PAGE
      Can php be use to print a web page
    3. How to get the HtmlForm element of an ASP.NET Page?
      Hello, All, I just want to know that generally how to get the HtmlForm element in an ASP.NET Page? Can anybody help? Please:) Best regards,...
    4. A challenge? Help isolating links in a WebPage
      Hello, I am writing a script that calls a URL and reads the resulting HTML into a function that strips out everthing and returns ONLY the links,...
    5. [HTML::Element] how to read element by element
      Hello I read the doc about HTML::Element, but I don't find how to read the tree create by parse() element by element. The doc says the tree looks...
  3. #2

    Default Re: Isolating a page element for print

    > I've constructed a table-based site-- for compatibility with older
    > browsers--
    What older browsers are you worried about, specifically.
    > ONLY the content/body
    > section appears on the printed page, thereby "stripping" this section of
    > the
    > other page elements to become the sole printed element.
    Of course. Design your tables so that the content/body is in a single,
    non-nested table. Use a Print stylesheet to make all of the other tables on
    the page 'display:none;'. For details, see this -
    [url]http://www.alistapart.com/articles/goingtoprint/[/url]

    > My reasoning is that
    > unless the page is fitted to the printing window/page (as in Firefox),
    > part of
    > the content pane will be cut off (as in IE 6, which of course has pathetic
    > printing functionality) when attempting to print.
    The trick is to keep everything either narrower than the printed page, or
    100% width.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "npish" <webforumsuser@macromedia.com> wrote in message
    news:eb64qs$5de$1@forums.macromedia.com...
    > I'm wondering if it's possible to achieve the following via css-- ie. with
    > a
    > style sheet for printing-- or via javascript:
    >
    > I've constructed a table-based site-- for compatibility with older
    > browsers--
    > that basically contains a header, footer, left-hand navigation pane and a
    > content/body pane. I'm wondering if it's possible to code the site in
    > such a
    > way that when a user opts to print any given page, ONLY the content/body
    > section appears on the printed page, thereby "stripping" this section of
    > the
    > other page elements to become the sole printed element. My reasoning is
    > that
    > unless the page is fitted to the printing window/page (as in Firefox),
    > part of
    > the content pane will be cut off (as in IE 6, which of course has pathetic
    > printing functionality) when attempting to print.
    >
    > Another option, if such a 'direct-to-print' concept is not possible, is to
    > create a "Print this page" link, that would effectively isolate the
    > content
    > section in a pop-up window that could then be printed. I would imagine
    > that
    > this would be achieved by JavaScript, but I would need direction with this
    > as
    > well.
    >
    > Any assistance and/or suggestions would be greatly appreciated;
    >
    > Thanks.
    >

    Murray *ACE* Guest

  4. #3

    Default Re: Isolating a page element for print

    what if the content section is in a nested-table?
    npish Guest

  5. #4

    Default Re: Isolating a page element for print

    You must break it out of the nested table in your page design. If you make
    the parent table display:none, I don't believe you have any options to make
    the inner table display:block.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "npish" <webforumsuser@macromedia.com> wrote in message
    news:eb66fi$73a$1@forums.macromedia.com...
    > what if the content section is in a nested-table?

    Murray *ACE* Guest

  6. #5

    Default Re: Isolating a page element for print

    hi Murray; thanks for your responses; as for your initial question about my compatibility concerns, I was under the impression that 4.0 browsers cannot render DIVs, is this incorrect?
    npish Guest

  7. #6

    Default Re: Isolating a page element for print

    Is it incorrect? Yes.

    Which 4.0 browsers are you concerned about? NN4x? I usually build my pages
    so that all 5+ browsers get the stylesheet, and NN4x does not, and receives
    a completely unstyled page. It's still functional, but just not so
    attractive.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "npish" <webforumsuser@macromedia.com> wrote in message
    news:eb8oma$d0j$1@forums.macromedia.com...
    > hi Murray; thanks for your responses; as for your initial question about
    > my compatibility concerns, I was under the impression that 4.0 browsers
    > cannot render DIVs, is this incorrect?

    Murray *ACE* Guest

  8. #7

    Default Re: Isolating a page element for print

    yeah, I guess I'm particularly concerned about NN4 and IE4; in a nutshell, how
    do you structure the div layout so that it's still "functional", albeit less
    attractive, for those older browsers? for a site with a complete div layout,
    won't the older browsers just stack one layout block on top of the other?

    npish Guest

  9. #8

    Default Re: Isolating a page element for print

    > yeah, I guess I'm particularly concerned about NN4 and IE4;

    Why? Added together these two consume about 0.5% of the total *general* use
    population. Are you dealing with a specialty demographic?
    > in a nutshell, how
    > do you structure the div layout so that it's still "functional", albeit
    > less
    > attractive, for those older browsers? for a site with a complete div
    > layout,
    > won't the older browsers just stack one layout block on top of the other?
    Yes - that's what they get. The site is functional - heck, it's even
    presented in a logical order on the screen, but it's unstyled. For NN4, you
    can get this simply by using the @import stylesheet link. I'm not sure
    about IE4, but you may be able to use an IE Conditional Comment to load a
    bland stylesheet for it, so that it supercedes the previously imported one.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "npish" <webforumsuser@macromedia.com> wrote in message
    news:ebc7kk$n03$1@forums.macromedia.com...
    > yeah, I guess I'm particularly concerned about NN4 and IE4; in a nutshell,
    > how
    > do you structure the div layout so that it's still "functional", albeit
    > less
    > attractive, for those older browsers? for a site with a complete div
    > layout,
    > won't the older browsers just stack one layout block on top of the other?
    >

    Murray *ACE* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139