Monday, March 31, 2025

2009/07/16

CSS Media Types Create Print-Friendly Pages

0 comments
You've decided to make your site "printer-friendly". You read the article on what it means to be printer friendly, but now you have to decide how you want to do it. There are several options:

Make a copy of every page or article - and manually remove all the non-printer-friendly stuff.
Use a (CGI, PHP, JavaScript, other) script to remove the non-printer friendly stuff on the fly.
Write a style sheet for print.
The drawback to option one should be fairly obvious to most people. It is very labor intensive and requires that for every page on your site, you create a second, duplicate page.

Option two is the most common choice right now, because it mitigates the problems of option one, and with a small change in how you write your Web pages, you can set it up for every page on your site. But if you don't have access to CGI or you just don't feel comfortable with programming, this method can be challenging, if not impossible.

Cascading Style Sheets to the Rescue

Luckily, CSS was not written with just Web pages in mind, and with just a few extra codes you can create a printer style sheet that removes all the non-friendly options on your page and even takes into account issues such as typography and readability. And you don't have to write two different copies of your page or do any programming to build it.

Defining a Style Sheet for Print

As with screen style sheets, you use the /link/ element to define the print style sheet your Web page should use:
link rel="stylesheet" type="text/css" href="print.css" media="print"

The only difference between this link element and the link to your screen style sheet is the attribute:
media="print"
Most style sheets are written for the screen, so the media can be left off, or written as:
media="screen"

Building the Style Sheet

When you build a print-friendly style sheet, you need to keep in mind all the rules that were defined in the previous article:

Change colors to black on white.
Change the font to serif.
Watch the font size.
Underline all links.
Remove non-essential images.
Remove navigation.
Remove some or most of the advertising.
Remove all JavaScript, Flash, and animated images.
Change these rules into CSS:
Black on white with 12-point, serif fonts:
body { color : #000000; background : #ffffff; font-family : "Times New Roman", Times, serif; font-size : 12pt; }

Underline links:
a { text-decoration : underline; color : #0000ff; }
I also like to make the links blue, to stand out on color printers.

Remove Non-Essential Images, Ads, Navigation, and Scripting
The best way to do this is to put
elements around each section of your page. For example, you might have the following sections:

top, bottom, left, and right navigation
internal advertising
content
other elements
Define each of them with a
element:

India Arie Therapy

0 comments


OH Oooh oh ooOH OH, yeaah yeah yeaah Yeaaah hey.
OH Oooh oh ooOH OH, yeaah yeah yeaah
Oh oh oh oh oh oh (I-I-I-I need your therapy)
oh oh oh oh oh oh (I-I-I-I need you to come and lay hands on me)
oh oh oh oh oh oh (I-I-I-I need your therapy-therapy-therapy)
oh oh oh oh oh …..
(heeey)
He lays me on the couch and says
“how has your day been?
Tell me your problems;
I'll help you solve them.
Come on let's talk about it”
He sits next to me and smiles.
Listens to all of my words,
Relaxes all of my nerves.

Like breathe in (breathe in)
Let it go (shout it out)
Take deeps breathes and real slow, calm down.
Close my eyes (soft spoke)
Ease my mind (take control)
From my body please
Work your Psychology

You're taking good care of me
Always been there for me
Boy I can't bear to leave
Cause I need your therapy

You've given me everything
So much I ever could need
Without you I'm so weak in the knees
I need your therapy

Oh oh oh oh oh oh (I-I-I-I need your therapy)
oh oh oh oh oh oh (I-I-I-I need you to come and lay hands on me)
oh oh oh oh oh oh (I-I-I-I need your therapy-therapy-therapy)
oh oh oh oh oh …..
(hey)

He puts his hand on my lower back
his face in my neck and
Says something to make me laugh
Makes me forget I was mad
His touch feels so right
It's like he's reading my mind
I need him all the time

Like breathe in (breathe in)
Let it go (shout it out)
Take deeps breathes and real slow, calm down.
Close my eyes (soft spoke?)
Ease my mind (take control)
From my body please (?)
Work your Psychology

You're taking good care of me
Always been there for me
Boy I can't bear to leave
Cause I need your therapy

You've given me everything
So much I ever could need
Without you I'm so weak in the knees
I need your therapy

Oh oh oh oh oh oh (I-I-I-I need your therapy)
oh oh oh oh oh oh (I-I-I-I need you to come and lay hands on me)
oh oh oh oh oh oh (I-I-I-I need your therapy-therapy-therapy)
oh oh oh oh oh …..
yeaah yeaah

When it feels like I'm losing power
When I feels like a wilting flower
The way you touch me says I'm there for you
It heals me just to hear you say “I Love You”

You're taking good care of me
Always been there for me
Boy I can't bear to leave
Cause I need your therapy

You've given me everything
So much I ever could need
Without you I'm so weak in the knees
I need your therapy

You're taking good care of me
Always been there for me
Boy I can't bear to leave
Cause I need your therapy

You've given me everything
So much I ever could need
Without you I'm so weak in the knees
I need your therapy

Oh oh oh oh oh oh oh oh oh oh oh oh …………

2009/07/15

Queen - I Was Born To Love You (2004 video)

0 comments


I was born to love you
With every single beat of my heart
Yes, I was born to take care of you
Every single day...

chorus:
I was born to love you
With every single beat of my heart
Yes, I was born to take care of you
Every single day of my life

You are the one for me
I am the man for you
You were made for me
You're my ecstasy
If I was given every opportunity
I'd kill for your love

So take a chance with me
Let me romance with you
I'm caught in a dream
And my dream's come true
It's so hard to believe
This is happening to me
An amazing feeling
Comin' through

chorus

I wanna love you
I love every little thing about you
I wanna love you, love you, love you
Born - to love you
Born - to love you
Yes I was born to love you
Born - to love you
Born - to love you
Every single day - of my life

An amazing feeling
Coming through

chorus

Yes I was born to love you
Every single day of my life

Go, I love you babe
Yes I was born to love you
I wanna love you, love you, love you
I wanna love you
I get so lonely, lonely, lonely
Yeah, I want to love you
Yeah, give it to me

Followers

人氣

   my space tracker
   HP Pavilion

 

Jake Hsiao--Self-trust is the first secret of success.. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com