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 HACK Google Play Music App

How to get BookMyShow Instant Disco...

How To Get Free Recharge And Money ...
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 ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows 10 Creators Update is here, now—yes,  now —but not (officially) on the PC. The ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...
  • 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 ...

Random Posts

  • iOS 9.3 features Night Shift, lockable Notes, new Quick Actions, and more; here's our review [GoAndroidAuthority.Com]
    iOS 9.3 features Night Shift, lockable Notes, new Quick Actions, and more; here's our review [GoAndroidAuthority.Com]
    25.03.2016 - 1 Comments
    Apple events are always observed with excitement – either fueled by anticipation for new…
  • Amkette Trubeats S50 smart speaker review: True for the price
    Amkette Trubeats S50 smart speaker review: True for the price
    09.01.2017 - 0 Comments
    Critic Rating4/5 User Rating4/5 Top Features *Premium-looking design*Lasting Battery*Good sound…
  • Download OneDrive v4.0.4 for Android
    Download OneDrive v4.0.4 for Android
    03.05.2016 - 0 Comments
    In Productivity by Top Developer Microsoft Corporation(4.4/5 average rating on Google…
  • Stop Looking! Love Isn't Something You Find —​ Love Finds YOU
    Stop Looking! Love Isn't Something You Find —​ Love Finds YOU
    07.08.2016 - 0 Comments
    ou gotta live in the moment, boo thang.There's a big pressure that comes with dating, and like most…
  • Xiaomi Hidden Features, Tips and Tricks
    Xiaomi Hidden Features, Tips and Tricks
    13.02.2016 - 0 Comments
    Xiaomi is a Chinese mobile manufacturer who has recently entered Indian markets with various successful…

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 & ...
  • Steam Now Supports PS4's DualShock 4 Controller
    HIGHLIGHTS ...
  • Lenovo Yoga Book launched in India at Rs 49,990: First Impressions
    Lenovo  has ...
  • This $15 stand turns your Apple Watch into a mini Macintosh
    For all those  ...
  • Grow Hair Faster: How to Make Hair Grow Faster Naturally
    Every woman wants ...
  • MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    Mobikwik - Update ...
  • Fitbit Flex 2017 review
    Fitbit PROS ...

Random Posts

  • Australians left to monitor their own NBN broadband speeds
    Australians left to monitor their own NBN broadband speeds
    28.07.2017 - 0 Comments
    The Australian Competition and Consumer Commission has pledged to get tough on Internet Service…
  • CEO Bhavin Turakhia invests additional $25 million in Flock
    CEO Bhavin Turakhia invests additional $25 million in Flock
    16.03.2017 - 0 Comments
    Flock today announced that CEO Bhavin Turakhia plans to invest $25 million into the…
  • Gionee S10 Lite Revealed
    Gionee S10 Lite Revealed
    01.02.2018 - 0 Comments
    Gionee S10 Lite Revealed with Stunning features Gionee has launched a new smartphone in India. Dubbed S10…
  • Make Blogger blog compatible for IE 10
    Make Blogger blog compatible for IE 10
    12.02.2016 - 0 Comments
    Make Blogger blog compatible for IE 10Blogger Blogs hosted in Google platform is widely used by many…
  • Nova Launcher 5.0 Launched, Brings Google Pixel Launcher-Like Features
    Nova Launcher 5.0 Launched, Brings Google Pixel Launcher-Like Features
    15.12.2016 - 0 Comments
    HIGHLIGHTS Pixel-inspired 'swipe to open' drawer introduced Android 7.1 Nougat's Launcher Shortcuts…

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!