Genius I tell you!

April 27, 2006 by  

I’d had an idea spark while working on my cooking site. I decided that it would be really cool to set an alternate style sheet for my brother’s site for printing — only it would print only the post content and prefix a scan of his letterhead up top.

“Genius!” I thought to myself. “After getting the Now We’re Cookin’ print template nailed down, this will be easy peasy.”

After wrestling with it for about an hour, it hits me — I had been messing with the background-image attributes in the header class, and most browsers are configured NOT to print background images. Thus, any background attributes are naturally going to be ignored by the printer.

D’oh! :mad: *proceeds to slap self*

Yep, I am such a goober.

Anyways, I adjust the header template by putting the letterhead image in its own class. In the main style sheets I set display to none, and fixed the printing style sheet to the desired specifications … and Voila! Printed out a nice letterhead for every page on the site.

Hey, I’m allowed to have my blond moments too … :razz:

Comments

7 Responses to “Genius I tell you!”

  1. Mara on April 27th 2006 at 6:17 pm

    LOL! Been there, done that. Using more than one style sheet gets tricky, at least for me.

  2. Nitallica (165 comments.) on April 28th 2006 at 7:10 am

    hehe, I haven’t fouled up too bad yet, and am doing it for most of my sites now … but when I first got started on this site’s sheets, I did keep accidentally overwriting the IE one with the main one and vice versa, LOL!

  3. Tib on April 30th 2006 at 6:18 pm

    Hello Nitallica,
    I was read your cooking site, well looks great and if you need special recipes i have them, about 1 million even some with boomrangs from australia (not try out) wave three times over the pot, what you guess, will the ins take the bill of the damage??? not sure i’m blond in real :P
    If you need some let just know, btw with the problems is the site not get to fatt from the delcious food you present on them???

    Have great evening

    Tib

  4. Nitallica (165 comments.) on April 30th 2006 at 6:31 pm

    Hi Tib!

    Well, I just sample the food, not eat all of it! hehehe ;)

    Feel free to post any recipes you like! :D

  5. Tib on May 1st 2006 at 2:44 am

    Morning Nicki,

    Ya sure, ya don’t eat all?
    Hmm, let we see, what i have here.
    We can start with possum soup, than roadkill stew and end with yello spinach pudding:P
    :D

    Na will look for other stuff, like Tib’s mexican bean dish and original stuff creools and asiatic no western tast, but originale.
    annnnnnnd ofcourse if ya search recipes, can often offer to ya.

    See even I’m not from the usa, I can soutern talking, thanks my g/f from Nawlins :P

    Will post some on the website today.

    Tib

  6. Nitallica (165 comments.) on May 1st 2006 at 9:34 am

    Roadkill? Mah favorite! Yum yum! lol ;)

    Thanks Tib! :)

  7. Tib on May 1st 2006 at 4:07 pm

    Lol was already guess so is favorite in ya area ;)
    Look on ya cooking site have place two recipes
    :)

    Wa ya think bout possum stew? or vindaloo chicken?

    Will ya not boring with dutch greenpea soup :P

    Tib



Note: all comments automatically close 120 days past the post date.