Top "Margin" questions

The CSS margin properties define the space around elements.

Setting margin and gravity of textview in code doesn't work

If i set only margin for my textview, that is inside linear layout, everything works. If i set only gravity …

android layout margin gravity
Center h2 inside a div - very basics

I want to center h2 inside #top but vert-aliignt middle doesnt work same auto margin... I ave no idea what …

html css text margin text-align
CSS Right Margin Does Not Work Inside a Div With Overflow Scroll

I am trying to make two divs, one inside the other. The inner div is larger than the outer div, …

html css scroll overflow margin
margin-top only when the flex item is wrapped

I have a flex container with two flex items. I want to set a margin-top on the second one, but …

css margin flexbox
How to remove TextView top margin?

I do have a problem with TextView. I don't want to have any margin/padding above it. <TextView android:…

android textview margin
Change Margin of a Layout using XML in Layer-List

I tried several options but I can't find the best way to do this: I want to change the margin …

android xml layout margin layer-list
Add bigger margin to EditText in Android AlertDialog

I have an EditText inside an AlertDialog. It looks like this. See where it says tddjdjck and how it is …

android android-edittext margin padding android-alertdialog
Android: How to adjust Margin/Padding in Preference?

Before I asked to remove the padding of the PreferenceActivity/PreferenceFragment: Android: How to maximize PreferenceFragment width (or get rid …

android margin preference
CSS: clean solution to the margin collapse issue when floating an element

Example HTML+CSS: <html> <body style="padding: 0; margin: 0;"> <div style="float: right;">first</…

css layout css-float margin
How to remove padding around Android CheckBox

I need to put check to the right hand top corner of my imageview. But when I do this I …

android checkbox margin padding