This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Front Page > April 2004 > Format for Print using MEDIA="print"
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Format for Print using MEDIA="print"
|
|
|
| I am using Front Page 2002 and have a problem regarding borders:
I have a border on the top of my page which contains an image. When I try to
print the page, the printed version has a blank space where the border would
be in the screen view. I saw in other posts that you can prevent printing
things using CSS MEDIA="print". My question is:
Since the picture in the border does not show when printing anyway, how do I
get rid of the blank space it leaves on the printed version? How do I refert
to the border when FrontPage refers to it as
<meta name="Microsoft Border" content="t">
Thank you for your help!
Maria
| |
| chris leeds 2004-04-29, 5:38 pm |
| on your print style sheet you would just set a display property of "none"
for the blank area.
I've got my site rigged to print and screen differently. I'm using two
separate style sheets. go to www.nedp.net and hit file print preview and
you'll see what's happening.
if you do view/ source you'll see links to the style sheets and their
arrangement to be called for different media. feel free to follow the links
to the style sheets and download them to your computer.
It's an OK example. I'm by no means a .css virtuoso but the arrangement
works OK.
HTH
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--
"Maria" <cdginc@clinicaldevice.com> wrote in message
news:uEOVorfLEHA.556@tk2msftngp13.phx.gbl...
> I am using Front Page 2002 and have a problem regarding borders:
>
> I have a border on the top of my page which contains an image. When I try
to
> print the page, the printed version has a blank space where the border
would
> be in the screen view. I saw in other posts that you can prevent printing
> things using CSS MEDIA="print". My question is:
> Since the picture in the border does not show when printing anyway, how do
I
> get rid of the blank space it leaves on the printed version? How do I
refert
> to the border when FrontPage refers to it as
> <meta name="Microsoft Border" content="t">
>
> Thank you for your help!
>
> Maria
>
>
| |
|
| Hi HTH,
Thank you for the tips. I have never used style sheets before, so forgive me
if I say something silly.
Do you mean that I have to creat one extra page all together (what you
called print style sheet)?
What extension do I save it as? htm? css?
I tried to go to includes/print.css and FrontPage opened on my machine with
a code page with no option to view it as "Normal", "HTML" or "Preview". So,
how do you put content on those pages? Or is it picking up the content (text
only) from the screen ?
If it doesn't pick up he content from the page seen on the screen, what do
you do with pages that you change the content all the time? Do you have to
make changes in 2 pages?
You mentioned that I can download you style sheets to my computer. Is the
print style sheet one that can be used universaly with any page?
Thank you for your help!
ps. You have a very nice site!
"chris leeds" <chris@nedp.net> wrote in message
news:uARBQvgLEHA.3892@TK2MSFTNGP11.phx.gbl...
> on your print style sheet you would just set a display property of "none"
> for the blank area.
>
> I've got my site rigged to print and screen differently. I'm using two
> separate style sheets. go to www.nedp.net and hit file print preview and
> you'll see what's happening.
>
> if you do view/ source you'll see links to the style sheets and their
> arrangement to be called for different media. feel free to follow the
links
> to the style sheets and download them to your computer.
>
> It's an OK example. I'm by no means a .css virtuoso but the arrangement
> works OK.
>
> HTH
>
> --
> The email address on this posting is a "black hole". I got tired of all
the
> spam.
> Please feel free to contact me here:
> http://nedp.net/contact/
> --
>
>
> "Maria" <cdginc@clinicaldevice.com> wrote in message
> news:uEOVorfLEHA.556@tk2msftngp13.phx.gbl...
try[color=darkred]
> to
> would
printing[color=darkred]
do[color=darkred]
> I
> refert
>
>
| |
| chris leeds 2004-04-29, 10:34 pm |
| Hi, answers (kind of) inline. ;-)
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--
"Maria" <cdginc@clinicaldevice.com> wrote in message
news:eenz0AhLEHA.3904@TK2MSFTNGP09.phx.gbl...
> Hi HTH,
>
> Thank you for the tips. I have never used style sheets before, so forgive
me
> if I say something silly.
Everybody starts somewhere!
>
> Do you mean that I have to creat one extra page all together (what you
> called print style sheet)?
Not at all, that's the best part about using style sheets to control this
stuff. your page remains the same. you just link two style sheets to it.
one for print, one for everything else. (you can provide additonal style
sheets for mobile type pocket pc, audible browser, even braille!) but for
this situation just two would do.
> What extension do I save it as? htm? css?
save it as .css
>
> I tried to go to includes/print.css and FrontPage opened on my machine
with
> a code page with no option to view it as "Normal", "HTML" or "Preview".
that was probably the "style sheet".
So,
> how do you put content on those pages? Or is it picking up the content
(text
> only) from the screen ?
the content on the style sheets can be put there with frontpage, notepad, or
virtually any other editor. it's not really "content" it's more like rules
to tell the browser how to display certain elements at certain times.
> If it doesn't pick up he content from the page seen on the screen, what do
> you do with pages that you change the content all the time?
once you make a style sheet you can just link it to as many pages (htm or
other) as you like. you will only have to do the style sheet once. (you
will probably revisit it to add new rules or refine things)
Do you have to
> make changes in 2 pages?
Nope, just the htm page. the style sheet's treatment of html will be
automatic.
>
> You mentioned that I can download you style sheets to my computer. Is the
> print style sheet one that can be used universaly with any page?
Not really. I'm using it to not display the top banner are and the side
menus. so i'm adding lines for display: none to the classes .top and .left
etc.
>
> Thank you for your help!
this is really just scratching the surface. you may want to look at
www.alistapart.com www.csszengarden.com and others. If you don't mind
buying books, the absolute best i've ever seen is html utopia at
www.sitepoint.com I don't use what i learned from it to go "tableless" but i
do use what i learned to "style" my tables and other html elements.
HTH (means: Hope This Helps).
>
> ps. You have a very nice site!
>
> "chris leeds" <chris@nedp.net> wrote in message
> news:uARBQvgLEHA.3892@TK2MSFTNGP11.phx.gbl...
"none"[color=darkred]
and[color=darkred]
> links
> the
> try
> printing
how[color=darkred]
> do
>
>
| |
| Maria 2004-04-29, 10:34 pm |
| It is all starting to make a lot of sense now!
That is a great solution, specialy for the fact that you only have to do
once and there is no worries about having different versions
(printer-friendly) of your web to work with!
I imported your print.css page and am trying to adapt it to use on my web.
However the "blank" spot left behind by the microsoft border is still
showing.
I used
..top { display: none;} and also
..borders {
display: none;
}
#borders {
display: none;
}
but is still shows!
any clues?
I have not uploaded the page with the style sheet yet, but you can see the
problem at www.clinicaldevice.com/Seminars.htm
Thanks!
Maria
"chris leeds" <chris@nedp.net> wrote in message
news:%23j0YWEjLEHA.2400@tk2msftngp13.phx.gbl...
> Hi, answers (kind of) inline. ;-)
>
> --
> The email address on this posting is a "black hole". I got tired of all
the
> spam.
> Please feel free to contact me here:
> http://nedp.net/contact/
> --
>
>
> "Maria" <cdginc@clinicaldevice.com> wrote in message
> news:eenz0AhLEHA.3904@TK2MSFTNGP09.phx.gbl...
forgive[color=darkred]
> me
>
> Everybody starts somewhere!
>
>
> Not at all, that's the best part about using style sheets to control this
> stuff. your page remains the same. you just link two style sheets to it.
> one for print, one for everything else. (you can provide additonal style
> sheets for mobile type pocket pc, audible browser, even braille!) but for
> this situation just two would do.
>
>
> save it as .css
>
> with
>
> that was probably the "style sheet".
>
> So,
> (text
>
> the content on the style sheets can be put there with frontpage, notepad,
or
> virtually any other editor. it's not really "content" it's more like
rules
> to tell the browser how to display certain elements at certain times.
>
do[color=darkred]
>
> once you make a style sheet you can just link it to as many pages (htm or
> other) as you like. you will only have to do the style sheet once. (you
> will probably revisit it to add new rules or refine things)
>
> Do you have to
>
> Nope, just the htm page. the style sheet's treatment of html will be
> automatic.
>
the[color=darkred]
>
> Not really. I'm using it to not display the top banner are and the side
> menus. so i'm adding lines for display: none to the classes .top and
..left
> etc.
>
> this is really just scratching the surface. you may want to look at
> www.alistapart.com www.csszengarden.com and others. If you don't mind
> buying books, the absolute best i've ever seen is html utopia at
> www.sitepoint.com I don't use what i learned from it to go "tableless" but
i
> do use what i learned to "style" my tables and other html elements.
>
> HTH (means: Hope This Helps).
> "none"
two[color=darkred]
> and
arrangement[color=darkred]
all[color=darkred]
I[color=darkred]
border[color=darkred]
> how
I[color=darkred]
>
>
| |
| Cheryl Wise 2004-04-29, 10:34 pm |
| try adding visibility: hidden; or visibility: collapse; to remove the space
taken up by the div you are hiding.
..top{
display: none;
visibility: collapse;
}
--
Cheryl D. Wise
MS-MVP-FrontPage
cdwise@wiserways.com
"Maria" <cdginc@clinicaldevice.com> wrote in message
news:%23pnqejjLEHA.2260@TK2MSFTNGP09.phx.gbl...
> It is all starting to make a lot of sense now!
> That is a great solution, specialy for the fact that you only have to do
> once and there is no worries about having different versions
> (printer-friendly) of your web to work with!
>
> I imported your print.css page and am trying to adapt it to use on my web.
> However the "blank" spot left behind by the microsoft border is still
> showing.
> I used
>
> .top { display: none;} and also
>
> .borders {
> display: none;
> }
>
> #borders {
> display: none;
> }
>
> but is still shows!
>
> any clues?
> I have not uploaded the page with the style sheet yet, but you can see the
> problem at www.clinicaldevice.com/Seminars.htm
>
| |
| chris leeds 2004-04-30, 4:30 am |
| generally visibility: hidden takes up space but doesn't show the content.
display: none doesn't take up space. I think its time for the poster to
show us the url.
the thing is if she's just styling borders she's not catching the content.
she'd need to add a class or ID to the table, cell, etc. itself so that the
style sheet would have a "point of reference".
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--
"Cheryl Wise" <newsgroups@wiserways.net> wrote in message
news:OeTiHdkLEHA.4080@TK2MSFTNGP12.phx.gbl...
> try adding visibility: hidden; or visibility: collapse; to remove the
space
> taken up by the div you are hiding.
>
> .top{
> display: none;
> visibility: collapse;
> }
>
> --
> Cheryl D. Wise
> MS-MVP-FrontPage
> cdwise@wiserways.com
>
>
> "Maria" <cdginc@clinicaldevice.com> wrote in message
> news:%23pnqejjLEHA.2260@TK2MSFTNGP09.phx.gbl...
web.[color=darkred]
the[color=darkred]
>
>
| |
|
| Hello Everyone,
I must have something really wrong with the page I am trying to format for
print, beacuse I tried the visibility: collapse and still id does not work.
I did give the URl on my last post, but as I said, I have not uploaded the
page with the style sheet in the make we are talking about. In any case,
here is the URL again
http://www.clinicaldevice.com/Seminars.htm
By the way, how can you assign an ID to a table?
This might have something to do with my problem, since my border contains a
table and the picture is inserted in one of the cells of the table.
Thanks,
Maria
"chris leeds" <chris@nedp.net> wrote in message
news:u582LelLEHA.3052@TK2MSFTNGP12.phx.gbl...
> generally visibility: hidden takes up space but doesn't show the content.
> display: none doesn't take up space. I think its time for the poster to
> show us the url.
>
> the thing is if she's just styling borders she's not catching the content.
> she'd need to add a class or ID to the table, cell, etc. itself so that
the
> style sheet would have a "point of reference".
>
> --
> The email address on this posting is a "black hole". I got tired of all
the
> spam.
> Please feel free to contact me here:
> http://nedp.net/contact/
> --
>
>
> "Cheryl Wise" <newsgroups@wiserways.net> wrote in message
> news:OeTiHdkLEHA.4080@TK2MSFTNGP12.phx.gbl...
> space
do[color=darkred]
> web.
> the
>
>
| |
| Cheryl Wise 2004-04-30, 5:34 pm |
| Problem is you have inline html code that is overwriting your style
information:
width="80%" height="175"
Inline styles always overwrite any other style settings. That's what the
Cascade in CSS means.
as for as assigning as ID to a table all you do is <.table id-name" >.
--
Cheryl D. Wise
MS-MVP-FrontPage
cdwise@wiserways.com
"Maria" <cdginc@clinicaldevice.com> wrote in message
news:e$66Z6sLEHA.3596@tk2msftngp13.phx.gbl...
> Hello Everyone,
>
> I must have something really wrong with the page I am trying to format for
> print, beacuse I tried the visibility: collapse and still id does not
> work.
> I did give the URl on my last post, but as I said, I have not uploaded the
> page with the style sheet in the make we are talking about. In any case,
> here is the URL again
> http://www.clinicaldevice.com/Seminars.htm
>
> By the way, how can you assign an ID to a table?
> This might have something to do with my problem, since my border contains
> a
> table and the picture is inserted in one of the cells of the table.
>
> Thanks,
>
> Maria
> "chris leeds" <chris@nedp.net> wrote in message
> news:u582LelLEHA.3052@TK2MSFTNGP12.phx.gbl...
> the
> the
> do
>
>
| |
|
| Finnaly! Sucess!
Cheryl, I tried changing the height from 175 pix. to 100% but it did not
make any differece. I tried not specifying the height and that mede the
border get real thin and the picture behind woul only have the very top
visible.
So I tried assigning an ID to the table ant added this to the print.css
#banner {
display: none;
}
It worked!
Thank you both, Cheryl and Chris for all your help. I feel like a learned a
lot this past 2 days!
"Cheryl Wise" <newsgroups@wiserways.net> wrote in message
news:eQzonVtLEHA.892@TK2MSFTNGP09.phx.gbl...
> Problem is you have inline html code that is overwriting your style
> information:
>
> width="80%" height="175"
>
> Inline styles always overwrite any other style settings. That's what the
> Cascade in CSS means.
>
> as for as assigning as ID to a table all you do is <.table id-name" >.
>
> --
> Cheryl D. Wise
> MS-MVP-FrontPage
> cdwise@wiserways.com
>
>
> "Maria" <cdginc@clinicaldevice.com> wrote in message
> news:e$66Z6sLEHA.3596@tk2msftngp13.phx.gbl...
for[color=darkred]
the[color=darkred]
contains[color=darkred]
content.[color=darkred]
to[color=darkred]
all[color=darkred]
to[color=darkred]
my[color=darkred]
still[color=darkred]
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|