I am passing HTML content (with base64 image) into a web service. Our web service format won't allow '<' and '>', so I am using < and >. But I am not able to retrieve content. The HTML editor itself is not giving output.
How can I do this? Below is my sample code.
<html><body><p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABRCAYAAABv/dCnAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAABf3SURBVHhe5VwHdFzVmf7e9BlpNJpRly3Jslxl44LBdjCYsraBDaSwnOymnYT0BA4nOSmbhAA52RAg7GaXFBICAQJJMJiEECBgAjY2Fi5ylauwmtVHo+m9vv3/995YbUaakZ2Vnf2O38y8e++77/7f/du978lCKpUScZFBUL4nG7ggCIjEk3j3aC9mVRSjurQQZp1q0mtG46IjhkkJRuNIpgQUGTUTBGVCGD954QAW1tjw/jX10jlEMWdSGBcfMST4yR4PGqrM0KpVSqkMrusb8uHHmw/j4TvXS2UiETIdjO35IsGxLgd0GrVyJoNJOdw+hJ+9fEQhhTRkmqQwLkpiEE8oP2QwKZ39bjy7vRUPfPYqiZBz4ETCRUnMcCCm/GJS5O/vPdGMBz8nkzIa/69MSa98yxDwrUd24Lff3qCcyxqUPlQq1ci5Up8LLi5iSDhGKK6VvllYVp6yUis0GlkULtt3chAPPLsP9z3XjAe2HMCjW09h81snmEOpPhdc8FFptCARXxShwZ14/q0duGVtNVIk6c4WPy5dfhnmrbgOzgjw1Z/vxqc31eOfllUqV43gtX2dWF5fguqyoilN7IIkhgfNJsBwdh6F78wDUCeeR6E1gWKSV2UmY4qnpHqoBSS8Mbh6gY5eA+pqvoDSJfdCa7FJ1SSf9M0E85EkcVU5KM0FSAwLQA62fTc8rR9C1dwhFJQXAEkDMUaZK8k5erIlGYlDgXlUJelHBI72EJwDS1F1+auwVNUq7fMT84IiJm02J166BrPn7UBRlZU0Q0OzznVSVU6QSNLGYD/lhdP5r2i8abNUnk+EumCIYVJCnhC63ipA43UmIqQAIilAXqFkNEgqQcPfXhzdDsy70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lgsB1LtKyg30haf03/tpMyEpMGmmzaO72o8Mdx3v2IJYREWtqClBZJC8fMg0yDdIoaR/WYmT1ls3oFUrPbRRCNRSCefOZm7OJpPdrmSHuUe5GLtt8aBilhVpsoEQs0/14ItjE+NHx6HquC5PZPnPIhS/QkiAXUhhTEpPGWWGp41+8O4Tb13GKLRVw0QTwAPiaUZdJkGVVCgnpgTIxfd4YfBRVFpQbYKBQ6yHtervDjy6akE9eaoORiNRSuXbce26/aBqUwu7GhcVn+0vfp520+s02P764Nrcom0bOxKTBMrEQv95HM0gOjx1dmUmNJVVjM8fpIM1XS3+I1l5J+OhY31AoadvhviAJGZGcrKCmXCuWgisQBWVP+MRKm/Lfv/H95U74La/H9jkwr0QvZb75ji1vYhjp2ZAh4rQjQr5ET7lE5pVrvpC7FvB7ykqNOgHk33F1Q5F0Dwb/bYCeNOeNVi/dU4VVlIsUkmly9DnQH0a3OwLey/7oSvlF7elM2LSIYfDN0ubF368cd+GmJfJex7mSw/1RZEO1RSe94CMjbbLs5JVJke4vkv8Lwk0myI+CLqk0wWzg11jkMU4X0yZmNOQJFvAkpeG3kYPjkukOikmh8A9fNIX3kWOm8Ullk2FsfTrTnfyaqXBeiGGcJYfsut6mxzXziqRynmbKIrIKx0KMTtWfO+LCPJsWq2omvt72f4nzRkwaTEAXrYBfPelFNa1s37/IAp1WfmUjGziE/4VCOEekT15aQmGb905mjhTGeSeGIU++QE4yhTfafHBTfqHXqEDRVkrf+Xk513FDdtfsEzbOJw3jC4mQmaWEAfwv/7nmqMaT4O8AAAAASUVORK5CYII=" /><br /><br />---------- Reply message ----------<br />From: a.b#gmail.com<br />Date: 02/01/2018 05:42:34 PM<br />Subject: Re: Started-df<br />To: d.e#gmail.com<br />------------------------------<br /><br /><br /></p>
<div dir="ltr"> </div>
<div class="gmail_extra"><br clear="all" />
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><span style="color: #999999;"> </span></div>
<div dir="ltr"><span style="color: #999999; font-family: 'arial black', sans-serif;"><strong><em>Regards,</em></strong></span>
<div><span style="color: #999999; font-family: 'arial black', sans-serif;"><span style="background-color: #ffffff;">a</span></span></div>
<div><span style="color: #999999; font-family: 'arial black',sans-serif; font-size: 12.8px;">Mobile: +913344556677</span></div>
<div><span style="color: #999999; font-family: 'arial black', sans-serif;"><span style="background-color: #ffffff;"> </span></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="gmail_quote">On Tue, Jan 2, 2018 at 4:26 PM, <a href="mailto:d.e#gmail.com">d.e#gmail.com</a> <span dir="ltr"><<a href="mailto:d.e#gmail.com" target="_blank" rel="noopener">d.e#gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<p><img /><br /><br />---------- Reply message ----------<br />From: <a href="mailto:d.e#gmail.com" target="_blank" rel="noopener">d.e#gmail.com</a><br />Date: 02/01/2018 03:42:06 PM<br />Subject: Ticket Started-dfd<br />To: <a href="mailto:a.b#gmail.com.com" target="_blank" rel="noopener">a.b#gmail.com.com</a><br />Cc: <a href="mailto:k.s#gmail.com" target="_blank" rel="noopener">k.s#gmail.com</a>;<a href="mailto:t.m#gmail.com" target="_blank" rel="noopener">t<wbr />a#gmail.com</a>;<a href="mailto:d.e#gmail.com" target="_blank" rel="noopener">dmeeu.<wbr />entity#gmail.com</a>;<br />------------------------------<br /><br /><br /></p>
<p>dfgd</p>
<p><br /><br /></p>
</blockquote>
</div>
</div></body></html>
Related
When we do tab focus on edit button, it is announcing lot other information including job title description and aria-label of other two button that are check and cross, it is only happening when we are keeping role="table", it is fine with role="presentation on other hand it is working as expected in NVDA and Firefox"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
button{
width: 50px;
height: 20px;
}
input{
display: none;
}
</style>
</head>
<body>
<div role="table">
<div
role="row"
>
<div
role="columnheader"
class="g-col-3 h3"
>
Alert title
</div>
<div
data-ph-at-id="email-frequency-text"
role="columnheader"
>
Frequency
</div>
<div
role="columnheader"
>
Actions
</div>
<div
role="columnheader"
class="g-col-3 h3"
>
Date Subscribed
</div>
</div>
<div
class="phw-grid phw-pt-6 phw-pb-6 phw-align-items-center"
role="row"
>
<div
class="result-block g-col-3 g-col-md-12 phw-form-group"
role="cell"
>
<div
class="jobTitle ph-a11y-jobTitleName phw-input-group"
>
<div
>
Chime Jobs
</div>
<button
aria-label="Edit Chime jobs"
tabindex="0"
role="button"
>
edit
</button>
<input
type="text"
data-ph-at-id="update-job-title-input"
data-ps="8be1e0cd-input-1"
aria-label="job alert title"
/>
<button
aria-label="Save"
role="button"
data-ph-at-id="submit-updated-job-title-button"
data-ph-component-name="save-button"
data-ps="8be1e0cd-button-2"
>
Check
</button>
<button
aria-label="Cancel"
role="button"
key-role="btnRole"
>
cross
</button>
</div>
<div
class="jobOtherInfo"
data-ph-at-id="job-other-info-block"
>
<span
class="p3"
>Test</span
>
</div>
</div>
<div
class="result-block g-col-3 g-col-md-12"
role="cell"
data-ps="8be1e0cd-div-22"
>
<div
>
<select
aria-label="frequency"
data-ph-at-id="mail-freq-drp-dwn"
class="phw-form-select"
>
<option
data-ph-at-id="mail-freq-drp-dwn-opt"
data-ps="8be1e0cd-option-1"
>
Frequency option
</option>
</select>
</div>
</div>
<div
class="g-col-3 g-col-md-12"
role="cell"
:class="$style['actions-date']"
data-ps="8be1e0cd-div-24"
>
<span
><a
aria-label="View Results "
class="phw-link"
data-ps="8be1e0cd-a-1"
>
view results
</a></span
>
<span
data-ps="8be1e0cd-span-4"
><a
role="button"
href="javascript:void(0)"
class="phw-link"
aria-label="unsubscribe"
>
unsubscribe
</a></span
>
</div>
</div>
</div>
</body>
</html>
I am using ejs as a template in my Nodejs project but the input form shown in the code is not response.I am not able to input text or click any of the buttons.What could be the possible reason and how can I overcome this issue? The page has dynamic content.
<div class="main">
<div id="newPost">
<p style="padding: 4px; border: 1px black solid; background-color: #330066; margin-bottom:0px ; margin-top:10px;width: 775px;margin-left: 10px;border-top-right-radius: 20px; border-top-left-radius: 20px; padding-left: 20px;color: white ">Create
post</p>
<form class="form-inline" style="margin-top: 20px" action="/admin/add-post" method="POST" enctype="multipart/form-data">
<textarea placeholder="Enter your post here ..." name="body"></textarea>
<input type="file" placeholder="Upload The Corresponding File" name="file">
<input type="hidden" name="_csrf" value="<%= csrfToken %>">
<button type="submit" class="btn btn-success btn-lg ml-auto" style="color: white ;margin-right:20px">Add
Post!</button>
</form>
</div>
<div class="newsFeed">
<% for(let post of posts) {%>
<% for(let p of post) {%>
<div id="samplePost">
<div class="feedHeader" style="border-bottom: 1px solid black">
<div class="row" style="padding-left: 20px; padding-top: 20px">
<div class="col-1">
<div class="circle">
<img class="profile-pic" src="/images/add.png">
</div>
</div>
<div class="col-11">
<h5 style="padding-left: 20px">Author Name</h5>
</div>
</div>
</div>
<div class="feedBody" style="padding: 10px">
<div>
<img src="/images/prof.jpg" class="feedPic">
<p style="padding-top:30px ">
<%= p.body %>
</p>
</div>
</div>
</div>
<% } %>
<% } %>
</div>
</div>
it would seem that you surely have a little mis aligned code , a improper nesting .. give it a thorough scan
I have a form and when user click button for multiple times than the data is also going to save multiple time in database. I am doing it to restrict multiple clicks to prevent this and This is my code but it is still not working.
<head>
<link href="~/Contents/css/style1.css" rel="stylesheet" />
<script>
$('form').submit(function () {
$(this).find(':submit').attr('disabled', 'disabled');
});
</script>
</head>
<div class="w3layouts_main wrap">
<h1 class="agile_head text-center" style="color: #e60053 ;font-family :'Comic Sans MS'">Share Your Experience</h1>
<form action="#" method="post" class="agile_form" id="form1">
<h1 style="color: white; font-size: large">1. Quality of Service. </h1>
<h2 style="color : #0086ce" >How satisfied were you with our Service?</h2>
<!--Star Raiting-->
<span class="SmileyRating" data-name="QualityOfService">
</span>
<br />
<!--Star Raiting End-->
<h1 style="color: white; font-size: large">2. Quality of Food. </h1>
<h2 style="color : #0086ce">How satisfied were you with our Food?</h2>
<span class="SmileyRating" data-name="QualityOfFood">
</span>
<br />
<!--Star Raiting End-->
<h1 style="color: white; font-size: large">3. Cleanliness of Lounge. </h1>
<h2 style="color : #0086ce">How satisfied were you with Marhaba Lounge Cleaning?</h2>
<span class="SmileyRating" data-name="CleanlinessOfLounge">
</span>
<br />
<!--Star Raiting End-->
<h1 style="color: white; font-size: large">4. Friendliness of Staff. </h1>
<h2 style="color : #0086ce">How satisfied were you with our Staff?</h2>
<span class="SmileyRating" data-name="FriendlinessOfStaff">
</span>
<br />
<!--Star Raiting End-->
<h1 style="color: white; font-size: large">5. Overall experience. </h1>
<h2 style="color : #0086ce">How satisfied were you with Marhaba Lounge?</h2>
<span class="SmileyRating" data-name="OverAllExperience">
</span>
<br />
<!--Star Raiting End-->
<h3 style="color: white; font-size: large">Valuable Suggestions.</h3>
<textarea placeholder="Additional comments" class="w3l_summary" name="Comments"></textarea>
<input id="formSubmit" type="submit" value="Submit" class="agileinfo" style= "background-color: white; color: #e60053 " onmouseover="this.style.backgroundColor = '#e60053', this.style.color = 'white' " onmouseout="this.style.backgroundColor = 'white', this.style.color = '#e60053'" />
</form>
</div>
script to achieve what i want is this
<script>
$('form').submit(function () {
$(this).find(':submit').attr('disabled', 'disabled');
});
</script>
What am I doing wrong here? how to debug the jQuery in visual studio?
Here you go with a solution if you are using jQuery v1.6 lesser version
$('form').submit(function() {
$(this).find("input[type='submit']").attr('disabled','disabled');
});
For jQuery v1.6 +
$('form').submit(function() {
$(this).find("input[type='submit']").prop('disabled',true);
});
Hope this will help you.
This is my controller:
queueApp.controller('userController', function ($scope, $routeParams, $interval, userService) {
console.log("<In userController>");
});
the app:
var queueApp = angular.module('queueApp', ['ngRoute']);
queueApp.config(function ($routeProvider) {
$routeProvider.when('/Doctor/:id*',
{
title: 'Doctors',
controller: 'userController',
templateUrl: '/Scripts/User/Index.html'
});
});
There is a reference to these files in the _Layout page (in my ASP.NET MVC app)
I've added the ng-view attribute to the body element in the the _Layout page and the ng-app="queueApp" tag to the html element. I got the line
"<In userController>" printed twice, it will be inefficient when calling web api service in the controller?!
Update:
the HTML for Scripts/User/Index.html:
<div class="row text-center no-margin"> <!--here the ng-controller will be injected-->
<div class="col-md-4 bg-default">
<div class="home-box opening-hours clearfix" style="background-color:white;">
<h2>text</h2>
<div>
<img src="/Content/images/divider-1.png">
</div>
<div style="margin-top: -16px;margin-bottom: 20px;">
<h2>text</h2>
</div>
<h3 style="margin-top: -35px;">
{{clinicId}}
</h3>
<div style="margin-top: -41px;">
<span style="font-family: 'AraHamah1964B-Bold'; font-size: 37px;">text</span>
</div>
<div style="margin-top: 5px;">
<img src="/Content/images/divider-1.png">
</div>
<div style="margin-top: -7px;">
<span style="font-family: 'AraHamah1964B-Bold'; font-size: 63px;
">text</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="home-box opening-hours clearfix" style="background-color: #ffffff;">
<h4>{{physicianName}}</h4>
<div>
<img src="/Content/images/divider-1.png">
</div>
<h4 style="color:#6c6c6c; font-size: 27px;margin-top: -6px;">{{clinicName}} <br><span style="font-size: 20px;"> {{speciality}}</span></h4>
<div>
<div class="doctors-img">
<img src="../../Content/images/Awni.jpg" width="145" style="margin-bottom: 23px;" alt="" title="">
</div>
</div>
<div style="margin-top: -18px;">
<span style="font-family: 'AraHamah1964B-Bold';font-size: 41px;">text</span>
</div>
<div style="margin-top: 4px;">
<img src="/Content/images/divider-1.png">
</div>
<div style="margin-top: 16px;">
<span style="font-family: 'AraHamah1964B-Bold';font-size: 35px;">{{clinicName}}</span>
</div>
</div>
</div>
<div class="col-md-4 bg-default">
<div class="home-box" style="background-color:white;min-height: 491px;">
<h4>text </h4>
<div>
<img src="/Content/images/divider-1.png">
</div>
<h2 style="margin-top: -7px;">text</h2>
<h3 style="margin-top: -22px;">{{next}}</h3>
<div style="margin-top: -26px;">
<h4>text </h4>
<div>
<img src="/Content/images/divider-1.png">
</div>
<h5 style="margin-top: 1px;">
{{current}} <span style="font-size: 15px;float: right;margin-top: 46px;">08:00 PM <br>15 Dec 2016 </span>
</h5>
</div>
</div>
</div>
</div>
<!-- Sub Page Content
============================================= -->
<div id="sub-page-content" class="clearfix">
<!-- Our Doctors List
============================================= -->
<div class="colourfull-row" style="margin-top: -50px;"></div>
<!-- Footer
============================================= -->
<footer id="footer" class="light" style="background-color: #4c4c4c;margin-top: 0px;">
<!-- Footer Bottom
============================================= -->
<div class="container">
<div class="row">
<div class="col-md-2">
<a href="#">
<img src="/Content/images/logo.png" style="width: 93px; margin-top: -3px;" alt="" title="Medicom Logo">
</a>
</div>
<div class="col-md-10">
<p class="footer-bottom-text" style="margin-left: -57px;">text <img src="/Content/images/24-7-white.png" style="width: 35px;"> | text </p>
</div>
</div>
</div>
</footer>
</div><!--end #wrapper-->
_Layout:
<!DOCTYPE html>
<html lang="en" class="no-js" ng-app="queueApp">
<head>
<base href="" />
<!-- Basic Page Needs
================================================== -->
<script src="~/Scripts/angular.min.js"></script>
<script src="~/Scripts/angular-route.min.js"></script>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/png" href="~/Content/images/favicon.png">
<title>Porto Medical Center</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
</head>
<body class="fixed-header" style="overflow-x:hidden;" ng-view autoscroll="true">
<div id="wrapper" class="clearfix">
#RenderBody()
<!-- Sub Page Content
============================================= -->
</div>
<script src="~/Scripts/_queueApp.js"></script>
<script src="~/Scripts/User/userController.js"></script>
<script src="~/Scripts/User/userService.js"></script>
</body>
</html>
Just change this :
queueApp.controller('userController', function ($scope, $routeParams, $interval, userService) {
console.log("<In userController>");
});
to this:
function userController($scope, $routeParams, $interval, userService) {
console.log("<In userController>");
});
This might solve your problem.
My issue was really difficult to track down. In the end, the problem was occurring when the web page had missing images. The src was missing a Url. This was happening on an MVC 5 Web Controller. To fix the issue, I included transparent images when no real image is available.
<img alt="" class="logo" src="">
I am creating a PDF with CSS page breaks, but the PDF is not not breaking the page. When I remove postion:absolute it works, but it creates space after every page. I think it's a CSS problem but I'm not sure.
If there is problem with the CSS, how I can resolve it?
<html>
<head>
<title> PDF </title>
<style type="text/css">
<!--
body { font-family: Arial; font-size: 33.0px }
.pos { position: absolute; z-index: 0; left: 0px; top: 0px }
-->
</style>
</head>
<body>
<div style="page-break-after: always;">
<div class="pos" id="_0:0" style="top:0"><img name="_1170:828" src="page_001.jpg"
height="1170" width="828" border="0" usemap="#Map" /></div>
<div class="pos" id="_126:284" style="top:284;left:126">
<span id="_30.8" style="font-family:Arial; font-size:30.8px; color:#fdfffd">Documents for the</span>
</div>
<div class="pos" id="_126:323" style="top:323;left:126">
<span id="_30.8" style="font-family:Arial; font-size:30.8px; color:#fdfffd">procurement</span>
</div>
<div class="pos" id="_138:975" style="top:975;left:138">
<span id="_15.4" style="font-weight:bold; font-family:Arial; font-size:15.4px; color:#fdfffd">Return
Date:<span>12-08-2014</span></span>
</div>
<div class="pos" id="_492:975" style="top:975;left:492">
<span id="_15.4" style="font-weight:bold; font-family:Arial; font-size:15.4px; color:#fdfffd">Reference No : test</span>
</div>
<div class="pos" id="_609:1094" style="top:1094;left:609">
<span id="_13.6" style="font-weight:bold;font-style:italic; font-family:Palatino Linotype; font-size:13.6px; color:#000000">
</span>
</div>
</div>
<div style="page-break-after: always;">
<div class="pos" id="_0:0" style="top:1170"><img name="_1170:827" src="page_002.jpg"
height="1170" width="827" border="0" usemap="#Map" /></div>
<div class="pos" id="_157:1357" style="top:1357;left:157">
<span id="_24.5" style="font-family:Arial; font-size:24.5px; color:#61c5c5">Contents</span>
</div>
<div class="pos" id="_414:1348" style="top:1348;left:414">
<span id="_24.5" style="font-family:Arial; font-size:24.5px; color:#fcfcfc">Part
01</span>
</div>
<div class="pos" id="_414:1392" style="top:1392;left:414">
<span id="_15.0" style="font-weight:bold; font-family:Arial; font-size:15.0px; color:#000000">INTRODUCTION</span>
</div>
<div class="pos" id="_154:1560" style="top:1560;left:154">
<span id="_24.5" style="font-family:Arial; font-size:24.5px; color:#fcfcfc">Part
02</span>
</div>
<div class="pos" id="_414:1569" style="top:1569;left:414">
<span id="_24.5" style="font-family:Arial; font-size:24.5px; color:#fcfcfc">Part
03</span>
</div>
<div class="pos" id="_154:1597" style="top:1597;left:154">
<span id="_15.0" style="font-weight:bold; font-family:Arial; font-size:15.0px; color:#000000">PASS /
FAIL</span>
</div>
<div class="pos" id="_154:1615" style="top:1615;left:154">
<span id="_15.0" style="font-weight:bold; font-family:Arial; font-size:15.0px; color:#000000">REQUIREMENTS</span>
</div>
<div class="pos" id="_414:1607" style="top:1607;left:414">
<span id="_15.0" style="font-weight:bold; font-family:Arial; font-size:15.0px; color:#000000">SELECTION
CRITERIA</span>
</div>
</div>
<div style="page-break-after: always;">
<div class="pos" id="_0:0" style="top:2340"><img name="_1170:827" src="page_003.jpg"
height="1170" width="827" border="0" usemap="#Map" /></div>
<div class="pos" id="_168:2645" style="top:2645;left:168">
<span id="_65.4" style="font-family:Arial; font-size:65.4px; color:#fcfcfc">Part
01</span>
</div>
<div class="pos" id="_168:2782" style="top:2782;left:168">
<span id="_24.5" style="font-weight:bold; font-family:Arial; font-size:24.5px; color:#000000">INTRODUCTION</span>
</div>
<div class="pos" id="_737:3442" style="top:3442;left:737">
<span id="_19.1" style="font-style:italic; font-family:Times New Roman; font-size:19.1px; color:#000000">1</span>
</div>
</div>
</body>
</html>
When you use position:absolute the PDF will be rendered using the elements absolute position. If you remove position:absolute without changing the top and left attributes of the elements to zero, they will be rendered relativelly and you will get the spaces between the pages.
Try:
#media print {
.pos { position: relative; z-index: 0; left: 0px; top: 0px }
}