Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / Hoe to create Printer friendly webpages for blogger blog with CSS

Hoe to create Printer friendly webpages for blogger blog with CSS

Latest Govt. Jobs 12:48:00 How To's Edit
Consider a situation where your readers has very less time available with them to read your post online or he/she may find your article valuable to him/her, so the readers tries to print your article and made available to him always. And what happen if your print version of your post version come with all cluster of sidebar and different kind of element that would not be require by your reader on print pages, so how to solve this problem, how to make your print pages of your blogger post free from all these cluster of your blogger/website.
Actually there is way all we need to add some very small CSS and some amount of coding. There is already an article written on this topic by Amit Agrawal you may also can read his post here.
I will be improvising his coding to give the printed webpage more extra professional features and looks. For demo print preview this post. How does it look ? cool ha..!

So simply we will start with the coding
Steps:
1: Add this below code ABOVE
]]></skin>
<style media='handheld,print'>
a,a:link {
  color:#000; 
  text-decoration:none
}
a[href]:after{
    content: &quot; (&quot; attr(href) &quot;) &quot;;
font-size:14px;
font: 100%/1.618em Georgia,&quot;Times New Roman&quot;,Times,serif;
}

.noprint {
  display:none
}
.yesprint{
display:block;
}
#wrapper:after{content:"This story was originally published at Eutectics (www.eutectics.blogspot.com) by Tushar Sharma. This printer-friendly version is made available for your personal and non-commercial use only.";}
</style>

Here a[href] is used to show any link within the blog post. #wrapper is the ID whole body structure of the Blog. Make sure you replace #wrapper with ID of first child after body in your HTML blogger template and also customized the text to appear at the end of printed page.

2: Add the following code where you have to render print button.
<a href='javascript:window.print()' rel='nofollow' title='Print This Story without clutter'>print</a>

3: Now in order to make different element of the blog not to display on printed webpages simply enclose them with the following code.
<span class=’noprint’>....</span>
Like for example sidebars, footer, header, and comments of your blog that would not be required by your readers.

4:Similarly enclose any code or text within the following piece of code that you have to show only on printed webpage.
<span class=’yesprint’>....</span>

Like for example I have enclose the following text in the above code. 
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<span class='yesprint' style='width:100%'>
NOTE :- <i>
This story was originally published at Eutectics (www.eutectics.blogspot.com) by Tushar Sharma. This printer-friendly version is made available for your personal and non-commercial use only.</i></span>
</b:if>

5: Since we don’t want to display the above text by default but only on printed page therefore we should include this CSS above ]]></skin>
.yesprint{
display:none
}

More from author: You add more CSS property to step 1 code in order to make your printed webpage more user friendly for readers. For example I have make the blog to change its width to 100% by including the following code. 
.primarybpart{
width:100% !important;
}

Here !important is necessary to overwrite its previous value. Similarly we can change any CSS property just by including within the print script.(step 1 code)
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to Sync Your Contacts Between A...

How to Know a Wi-Fi Network Is Fast...

How to delete your Google search hi...
Hoe to create Printer friendly webpages for blogger blog with CSS Hoe to create Printer friendly webpages for blogger blog with CSS Reviewed by Latest Govt. Jobs on 12:48:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • How to speed up your Android smartphone
    How to speed up your Android smartphone
    25.07.2017 - 0 Comments
  • DoctorSIM: The EASIEST and CHEAPEST Way To Unlock Your Phone Online
    DoctorSIM: The EASIEST and CHEAPEST Way To Unlock Your Phone Online
    11.02.2017 - 0 Comments
    Looking to unlock your phone? Don’t waste your time going to a shop, just just DoctorSIM, a simple,…
  • Baselworld 2017: Highlights from the sector’s biggest watch and jewellery trade display
    Baselworld 2017: Highlights from the sector’s biggest watch and jewellery trade display
    27.03.2017 - 0 Comments
    Baselworld 2017 officially runs from March 23 to March 30 in the Swiss city of Basel. You may not…
  • Tips for postpartum hair loss / How to avoid hair loss after delivery
    Tips for postpartum hair loss / How to avoid hair loss after delivery
    15.03.2016 - 0 Comments
    If you are experiencing sudden hair loss after the birth of your child, know that you are not alone. 30%…
  • Chromebook Pixel Review: Awesome. Just AWESOME!
    Chromebook Pixel Review: Awesome. Just AWESOME!
    11.02.2017 - 0 Comments
    ChromeOS has been around for awhile now and is slowly starting to gain some traction with users. Mostly…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...

Random Posts

  • How to create an icon-only bookmarks bar in your browser
    How to create an icon-only bookmarks bar in your browser
    25.03.2017 - 0 Comments
    Sometimes you just want to slap yourself for accepting things the way they are instead of considering…
  • The Samsung Galaxy S8 Plus has a massive trouble: the Samsung Galaxy S8
    The Samsung Galaxy S8 Plus has a massive trouble: the Samsung Galaxy S8
    02.04.2017 - 0 Comments
    The Samsung Galaxy S8 Plus is a lovely phone. I’ve been lucky enough get hands on with it…
  • Fitbit Alta  2017 review
    Fitbit Alta 2017 review
    13.03.2017 - 0 Comments
    Fitbit VERDICT Fitbit's Alta has it where it counts, namely the killer week-long battery life,…
  • Xiaomi Mi Car Charger, Mi 2-in-1 USB Cable
    Xiaomi Mi Car Charger, Mi 2-in-1 USB Cable
    24.09.2017 - 0 Comments
    Xiaomi had added two new accessories to its product line. The new accessories include the Mi Car…
  • 24 Dry Hair Treatments From Your Kitchen
    24 Dry Hair Treatments From Your Kitchen
    10.06.2016 - 0 Comments
    Whether you have long hair or short, curly or straight hair, every woman’s dream is smooth, silky and healthy…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!