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.
Results 1 to 9 of 9
  1. #1
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post

    Printing Background Image CSS

    i have print media css page.

    in it i have specified a bg image for a certain div.
    I wish it to repeat all the way down the side of the div.
    but i cannot seem to make background images print.
    even when set thru the print media css sheet.

    html
    http://www.redtv.org/lpa/archives/calendar/2005mar

    print media css
    http://LansingPA.org/lpa/calprint.css


    awesome thanks.
    (havent seent his yet ehere the fix is actually css, and also havent seen where people are printing repeating graphics (i know this seems bad (grphic printing)... but it is for design purposes))

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

    Backgrounds

    Printer settings are usually such to not print background colors and images to save ink/toner; since this is a printer setting, it can't be influenced by CSS.

    If it is desperately necessary to have to images printed, include them as content; otherwise, you have to ask yourself whether a print design of a web page really is useless without background images. Anyway: it's up to the visitor to decide to spend their ink/toner on them.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post

    Angry silly user prefs for bg image print

    well thats horrible.
    I see this is a user pref.
    I was hoping there was a way to overide.

    welll,...on adding them as content.....
    there's probably no way to achieve the same desired effect as
    with bg repeat-y.
    ....that is to say. no way to loop content so that the image repeats all the way down the div.


    (btw, on my reasons for doing this...
    i am usiung my CMS to create print flyer designs,
    and do not want to trouble users with setting user prefs, but want all the desired design elements to print.)


    thanks for help.... great.
    Last edited by zro@rtv; 02-28-2005 at 04:48 PM.
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by zro@rtv
    (btw, on my reasons for doing this...
    i am usiung my CMS to create print flyer designs,
    and do not want to trouble users with setting user prefs, but want all the desired design elements to print.)
    Well, as Ronald says, if the images are necessary you should include them as content. As the pages in question are flyer designs, I'd have the CMS output <img> tags rather than bg images, and then the print settings would work just fine.

    I'm sure there is some scripting solution for having the images tile... if there isn't you are using a CMS so you could have the serverside processing contol the tiling, maybe...

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

    Other format

    Or, maybe a web page isn't the best output format anyway; would it be feasible to generate a pdf?
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #6
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post

    pdf overhead

    ill have to look into automated dynamic creation of pdfs from the data base. thats a bit over my head at the current time.

    in the mean time...
    feel free to tell me how dirty my code is, and give suggestions for inprovement...

    http://lansingpa.org
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

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

    My head, too

    thats a bit over my head at the current time.
    Yeah, same here... I'll see if I can dig something up.

    About your code: it doesn't look too bad, only a little undirected; there are lots of divs in there, and in places like the calendar I saw some inefficient use of classes. Again, I would need to go over it some more; I'll get back to you.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #8
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post

    indirection

    AWESOME!
    any review/ help would be GREATLY appreciated.

    ...im sorta new, and am just sorta diving right in, so ....im sure yall know how it is.
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

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

    Generating pdfs

    I did a little Googling on "generating pdf" and "generate pdf with php" and I get the general impression that it is very feasible to generate pdfs; there seem to be a number of ways, tools, techniques, etc; you'll have to decide for yourself which way suits you best.

    On the coding issue: there are a whole lot of divs in there that could just as well be replaced by more appropriate elements, and I saw a fair number of blockquotes of which I couldn't really tell what they were used for.
    Try to keep a logical document structure in mind which would work even when serialised without any styling.
    Also, every single cell in the calendar table gets:
    Code:
    <span class="calendar">...</span>
    What do you need the spans for? A td or th can be styled just fine.
    Same goes for:
    Code:
    <caption class="calendarhead">
    There's only one caption that is a descendant from this table; in both cases, giving the table an id (say, "calendar" ) would make styling the caption as well as all the ths and tds a cinch through selectors like "#calendar caption", "#calendar th" and "#calendar td". If you do need some tds styled differently, rather add classes to the exceptions.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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