• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

div's right alignment is not coming properly in print preview

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

When i am viewing divs and their contents in browser, then all div's right alignment is coming OK. But during print preview, some of the div's right alignment is not coming properly.
Actually some of the div's right border is not aligned with other div's right border.
Why is it so? Can any one help me please?


Code is as follows.

<div id="name1"
style="position:absolute;left:492px;top:0px;
width:auto;height:auto;white-space:nowrap;
border-left-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-width:thin;">
<font face="Verdana" size="2pt" color="#000080" >
Prashant Mak
</font>

</div>

<div id="name2"
style="position:absolute;left:555px;top:20px;

width:auto;height:auto;white-space:nowrap;
border-left-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-width:thin;">

<font face="Verdana" size="2pt" color="#000080" >

Mak
</font>

</div>

<div id="name3"
style="position:absolute;left:547px;top:38px;
width:auto;height:auto;white-space:nowrap;
border-left-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-width:thin;">

<font face="Verdana" size="2pt" color="#000080" >
Shilpi
</font>

</div>


<div id="name4"
style="position:absolute;left:547px;top:58px;
width:auto;height:auto;white-space:nowrap;
border-left-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-width:thin;">

<font face="Verdana" size="2pt" color="#000080" >
Arora
</font>

</div>

Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic