View Single Post
Old 06-11-2015, 08:32 AM   #11
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Ghitulescu View Post
What am I doing wrong?
Your code is ok but if you want the things work under most ereaders, then don't use <span> but <p> tags. Of this way:

1. In your .css stylesheet:

Code:
p {
   text-align: justify;
   margin: 0;
}

.SideNote {
   float: left;
   width: 25%;
   font-size: 0.7em;
   font-weight: bold;
   text-indent: 0;
   text-align: left;
   margin: 5px 10px 3px 0;
}
2. In your .xhtml file use:

Code:
  <p class="SideNote">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

  <p>Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo.</p>
In ADE, these are the results:

Click image for larger version

Name:	Image1.png
Views:	333
Size:	82.9 KB
ID:	139195

Below I attach the respective .epub

Regards
Rubén
Attached Files
File Type: epub Side Note.epub (2.6 KB, 347 views)

Last edited by RbnJrg; 06-11-2015 at 08:58 AM.
RbnJrg is offline   Reply With Quote