Thread: A CSS question
View Single Post
Old 01-18-2022, 02:58 PM   #3
Moonbase59
Addict
Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.
 
Moonbase59's Avatar
 
Posts: 224
Karma: 1000244
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
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