View Single Post
Old 03-16-2012, 03:24 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,803
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jezzad View Post
Code:
html  { border: 0; margin:0; }
body  { border: 0; margin:0; background-color:rgb(0,0,0);}
@page { border: 0; margin:0; }
p     { text-align: center; margin: 0; padding: 0; text-indent: 0 }
Does this look OK ? Thanks for the help so far and for bearing with me...!
Yes, it looks a lot better. Now for the CSS. You don't need @page if you aren't actually setting anything with it. Padding and the background color can go as well as html. You should not center p and the text indent should not be 0 in p.

Code:
body  {
 margin: 0;
 widows: 0;
 orphans: 0
}
p {
 text-align: justify
 margin: 0;
 text-indent: 1.2em
}
.center {
 margin: 0;
 text-align: center;
 text-indent: 0
}
Code:
<p class="center"><img alt="" src="../Images/myimage.jpg" width="100%" /></p>

Last edited by JSWolf; 03-16-2012 at 03:27 PM.
JSWolf is offline   Reply With Quote