Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2022, 02:30 PM   #1
Woodssi
Enthusiast
Woodssi began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2011
Location: Barrhead, Scotland
Device: Kindle Paperwhite (2)
A CSS question

I will apologise, in advance, if this post should be under another category.

I'm using Sigil (latest version) to edit a project that's a scan of an old title, to just make it look a bit smarter (mainly alignment issues).

Some of the Chapters have a main title, but then sections broken down with Roman Numerals as dividers. At present they look too close to the preceding, and following, text.

In the CSS stylesheet, I see this for the appropriate lines:-
display: block;
font-weight: bold;
text-align: center;
text-indent: 0;
margin: 1em 0 1em

My question is, why does the margin only have 3 entries?
(Shouldn't there be 4, for Top, Bottom, Left and Right?)

If not, which entry refers to which position?

Thanks
Woodssi is offline   Reply With Quote
Old 01-18-2022, 02:55 PM   #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: 27,414
Karma: 44897222
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
It can have 1, 2 3 or all 4
1 is all the same
2 is top/bot, Left/right
3 (I can never remember )
4 is as you said
theducks is offline   Reply With Quote
Advert
Old 01-18-2022, 02:58 PM   #3
Moonbase59
Zealot
Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.
 
Moonbase59's Avatar
 
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
As with many CSS properties, you can use margin with one, two, three or four parameters.

One param = all four sides.
Two params = vertical | horizontal
Three params: top | horizontal | bottom
Four params: top | right | bottom | left

See https://developer.mozilla.org/en-US/docs/Web/CSS/margin.

EDIT: Darn, @theducks was faster!

P.S.: Don’t expect every reader to honor margins on every block element. Some are notorious in ignoring whatever you give them, mostly on horizontal margins.

Last edited by Moonbase59; 01-18-2022 at 03:02 PM.
Moonbase59 is offline   Reply With Quote
Old 01-18-2022, 03:29 PM   #4
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,467
Karma: 14308992
Join Date: Nov 2019
Device: none
See also

https://www.w3schools.com/css/default.asp
hobnail is offline   Reply With Quote
Old 01-18-2022, 08:36 PM   #5
Woodssi
Enthusiast
Woodssi began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2011
Location: Barrhead, Scotland
Device: Kindle Paperwhite (2)
Thanks for those comprehensive replies.

Topic can now be closed.
Woodssi is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Question phossler Editor 52 11-13-2020 03:23 PM
css question ralphiedee Sigil 74 12-23-2012 06:29 AM
CSS Question jackibar Sigil 24 03-01-2012 09:12 AM
CSS question crutledge Workshop 17 12-17-2011 07:52 AM
CSS Question AppleTard Calibre 1 06-12-2011 12:07 AM


All times are GMT -4. The time now is 05:20 AM.


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