Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2013, 09:14 AM   #1
teh603
Autism Spectrum Disorder
teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.
 
teh603's Avatar
 
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.
teh603 is offline   Reply With Quote
Old 08-01-2013, 11:05 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by teh603 View Post
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.
Have you tried wrapping the lot in a Div with the Padding and border assigned to the Div?
theducks is offline   Reply With Quote
Advert
Old 08-01-2013, 11:11 AM   #3
teh603
Autism Spectrum Disorder
teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.
 
teh603's Avatar
 
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
Quote:
Originally Posted by theducks View Post
Have you tried wrapping the lot in a Div with the Padding and border assigned to the Div?
Haven't yet, mostly because DIV tags weren't part of the HTML I learned way back in the day- around HTML 2.0.

It looks like it should work.
teh603 is offline   Reply With Quote
Old 08-01-2013, 11:31 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
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
Jellby is offline   Reply With Quote
Old 08-01-2013, 11:58 AM   #5
teh603
Autism Spectrum Disorder
teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.
 
teh603's Avatar
 
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
Quote:
Originally Posted by Jellby View Post
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
Honestly, I always found <p> hackish. <br> was a little simpler and got the job done better, especially if your rendering engine ignores CSS.
teh603 is offline   Reply With Quote
Advert
Old 08-01-2013, 04:41 PM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
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
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:30 PM.


MobileRead.com is a privately owned, operated and funded community.