|
|
#16 | |
|
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 996810
Join Date: Dec 2012
Device: Kindle
|
Quote:
Thanks for this! |
|
|
|
|
|
|
#17 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,274
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,880
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Just now I read your post. I don't know if you've already solved your problem but if you're still looking for a solution, this is mine:
1. In your .css stylesheet, write the following: Code:
.container {
display: block;
margin: 1.5em 0;
text-indent: 0;
text-align: center;
}
.formula {
font-family: serif; /* feel free to change this property */
font-size: 1.2em; /* feel free to change this size */
font-weight: normal; /* use bold here if you wish */
font-style: italic; /* use normal here if you wish */
padding: 0.25em 0.5em;
background: #FFFFBF; /* change the color if you wish */
}
.number {
float: right;
font-family: serif; /* feel free to change this property */
font-size: 1.2em; /* feel free to change this size */
font-weight: bold; /* use normal here if you wish */
padding: 0 16px 0px 10px;
margin: 0 0 0 -0.2em;
}
p {
font-family: sans-serif; /* feel free to change this property */
font-size: 1em;
margin: 0;
text-align: justify;
text-indent: 0;
}
p + p {
text-indent: 1em;
}
Code:
<p>...Some text here ... </p> <p class="container"><span class="number">(1)</span><span class="formula">C = π r²</span></p> <p>...Some text here ... </p> ![]() VERY IMPORTANT: The class "number" MUST BE FIRST than class "formula". That is the key in order that the number and the formula are in a same line. Below you can see a screenshot of my ADE and the respective epub. Regards Rubén |
|
|
|
|
|
#19 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
http://www.w3schools.com/cssref/pr_border-style.asp There is also border-width: http://www.w3schools.com/cssref/pr_border-width.asp And here is a nice test where you can test the different types: http://www.w3schools.com/css/tryit.a...s_border-width Quote:
I was planning on updating this topic the next time I took a look at that EPUB (I think my employer has it as one of the upcoming projects). I put it on hold to fix this bug, and haven't touched it since. |
||
|
|
|
|
|
#20 |
|
ePub Maker
![]() Posts: 120
Karma: 16
Join Date: Dec 2009
Location: Mordor
Device: iPad,Kindle 3, Nook 2
|
When will Adobe fix this stupid bug? and many other silly ugly bugs?
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about ADE | crutledge | ePub | 7 | 04-15-2013 03:11 AM |
| The operator >> is undefined for the argument type(s) float, float | twobob | Kindle Developer's Corner | 10 | 09-05-2012 01:50 PM |
| Float bug in ADE ? | helenouchkaia | ePub | 16 | 01-08-2012 12:11 PM |
| float not working as expected in ADE | iain robinson | ePub | 8 | 06-18-2011 05:16 AM |
| Another question about ADE | crutledge | Sigil | 0 | 05-21-2010 06:03 PM |