Top "Margin" questions

The CSS margin properties define the space around elements.

CSS margin-top of <h1> affects parent's margin

I have look for a while now on this problem and have not found a straight answer. When adding a …

css margin
CSS margin auto center with top margin - VALID?

Is this valid CSS to center the div and also apply a top margin? div { margin: 0 auto; margin-top: 30px; }

html css margin
UITableViewCell with autolayout left margin different on iPhone and iPad

I am using a grouped UITableView with static cells for an options screen/scene. Everything is done in Xcode 6.1 / iOS 8.1.…

ios uitableview autolayout margin
Programmatically assigning Margin and/or Padding to a Label

In trying to get some labels in a TableLayoutPanel to move from the top left of their cells to the …

c# winforms padding margin tablelayoutpanel
`margin:auto;` doesn't work on inline-block elements

I have a "container" div to which I gave margin:auto;. It worked fine as long as I gave it …

html css margin
CSS: Margin-top when parent's got no border

As you can see in this picture, I've got an orange div inside a green div with no top border. …

css border margin collapse
Why would margin not be contained by parent element?

When an element with a margin is contained within another element, the parent does not consistently wrap/contain that margin. …

html css margin
Space between div and img?

I have code like this: <div id="sc"> <h1>1. Orange</h1> <p>…

html css margin padding gaps-in-visuals
Can Margin be enforced even with Dock property set?

I have a WinForms Form with a few controls on it. All of them are GrouBox controls and I want …

winforms controls margin dock groupbox
How to animate Margin property in WPF

I want to move animate an rectangle object to move it in x-axis. I am new to WPF animation, started …

c# wpf xaml animation margin