Skip to content

Instantly share code, notes, and snippets.

@jayshields
Last active November 7, 2015 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayshields/bf10c796c9d8daebfbba to your computer and use it in GitHub Desktop.
Save jayshields/bf10c796c9d8daebfbba to your computer and use it in GitHub Desktop.
NatWest online banking print statement fix
document.getElementById('ctl00_secframe').contentWindow.print();
@media print {
.frame.transactionMiddle, #mid, .wizard #content, #canvas, .wizard #wrapper {
width: 100% !important;
}
.ItemTable {
width: 95% !important;
}
#lpdcFrame {
display: none !important;
}
}
@jayshields
Copy link
Author

As the NatWest online banking site is inside a frame and fixed width, you can't print it properly. So I've made a fix.

Add the CSS in Stylish and then add the JS to a bookmarklet (just a regular bookmark, prefix it with javascript:) then when you're on the latest statement page click your bookmarklet to print it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment