04-09-2016, 05:41 AM | #1 |
Zealot
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
|
div margin-bottom=0px
Hi, I have 3 line text center and above other line (text cente)
I want add <div> to 3 lines top and other line bottom at the end of my book page... I try div margin-bottom=0px but don't work! Hot to setting this div to have line at the end of my page??? |
04-09-2016, 10:05 AM | #2 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I put all my code in the linked CSS as such: Code:
div {margin-bottom: 0 ; } Inline it would be: style="margin-bottom: 0 ;" But I am a div has no margin (already 0) I think in Boxes <div> is the shipping carton for the section (when needed) inside is various product boxes <p> <span>, <i>, <b>, <sub>, <sup> when extra care is needed, inside those |
|
Advert | |
|
04-10-2016, 01:38 PM | #3 |
Zealot
Posts: 117
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
|
ok with <div style="margin-bottom: 0"> not work!
also <div style="position: fixed; bottom: 0;"> or <div style="position: absolute; bottom: 0px; width: 100%"> not work! I've solved with <div style="margin-top: 300px"> but only after various attempts! i have a page with: TITLE SUBTITLE note 1 note 2 note 3 note 4 and repeat my question (please write a valid example code): how to have 4 lines note at the end of my page?? (excluded margin-top rule) |
04-10-2016, 02:00 PM | #4 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
This is really ugly code, but it works. <div>note 1<br />note 2<br /><br />note 3<br />note 4</div> space between But I rarely use a DIV. IMHO DIV is a special needs container. Any other use is unnecessary code bloat <p class="notes" >note 4 </p> </body> If that does not work. Look at the Containing block which is BODY in my example. It may have a bottom margin set. OR a padding-bottom SET (the default is none, so padding: 0 is bloat unless you HAD padding inside the BLOCK) |
|
04-26-2016, 01:53 PM | #5 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I don't know if it works exactly the same on all readers, but this seems to do what you want when I tested an ePub in the Calibre viewer and my Kobo reader:
stylesheet: Spoiler:
html: Spoiler:
Attached screenshots are from my Kobo Glo (Adobe RMSDK10) at two different font size settings: |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Top-margin (bottom-margin?) for Kobo? | Notjohn | Sigil | 14 | 02-28-2015 06:43 AM |
margin top, bottom, additive or not ? | cybmole | Conversion | 5 | 02-16-2011 12:33 PM |
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } | cybmole | Conversion | 15 | 02-12-2011 11:57 AM |
Can't get rid of bottom margin in epubs | ShellShock | Sony Reader | 3 | 02-11-2010 04:15 PM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |