08-01-2013, 09:14 AM | #1 |
Autism Spectrum Disorder
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
|
Multiple Paragraphs in a Border
So the CSS Box Model (as per W3Schools' tutorial from the Sigil website) allows you to put a frame around a paragraph. But how do you put multiple paragraphs within the same frame, like if you're building a sidebar?
I'd normally try using <BR> tags, but it seems like you can't indent after a <BR> for some stupid reason. It also doesn't solve the problem of putting a heading within the box as well. |
08-01-2013, 11: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:
|
|
Advert | |
|
08-01-2013, 11:11 AM | #3 |
Autism Spectrum Disorder
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
|
|
08-01-2013, 11:31 AM | #4 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Best solution is the <div>.
Hackish, ugly solution that you should never use is creating "pseudo-paragraphs" with <span> and display:block, which you would use inside your framed <p> to simulate paragraphs. Even if you don't use it, it's good to know it |
08-01-2013, 11:58 AM | #5 |
Autism Spectrum Disorder
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
|
Honestly, I always found <p> hackish. <br> was a little simpler and got the job done better, especially if your rendering engine ignores CSS.
|
Advert | |
|
08-01-2013, 04:41 PM | #6 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I just posted a sample of a textbox (paragraphs in a border) in the EPUB forum:
https://www.mobileread.com/forums/sho...d.php?t=218023 and CSS for an alternate gray box that I use: https://www.mobileread.com/forums/sho...25&postcount=9 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple libraries Multiple Devices | Marianne527 | Library Management | 2 | 12-03-2012 04:04 PM |
Multiple Kindles, Multiple News Feeds | filmprof | Recipes | 10 | 02-20-2012 10:38 AM |
<Command Line> Add multiple books in multiple formats | himitsu | Calibre | 8 | 09-25-2010 11:07 PM |
Border | dixieknits | Ectaco jetBook | 6 | 09-13-2010 11:02 AM |
Bug: entries with multiple formats trigger multiple conversions | flinx1 | Calibre | 12 | 05-21-2010 06:23 AM |