Top "Margin" questions

The CSS margin properties define the space around elements.

When to use margin vs padding in CSS

When writing CSS, is there a particular rule or guideline that should be used in deciding when to use margin …

css padding margin
How to align two elements on the same line without changing HTML

I have two elements on the same line floated left and floated right. <style type="text/css"> #element1 {…

html css css-float margin
Why can't I center with margin: 0 auto?

I have a #header div that is 100% width and within that div I have an unordered list. I have applied …

html css margin
CSS Cell Margin

In my HTML document, I have a table with two columns and multiple rows. How can I increase the space …

html css cell margin css-tables
Align a div to center

I want to float a div to center. Is it possible? text-align: center is not working in IE.

html css margin center-align
Set margins in a LinearLayout programmatically

I'm trying to use Java (not XML) to create a LinearLayout with buttons that fill the screen, and have margins. …

java android layout view margin
Remove all padding and margin table HTML and CSS

I have this table : <body> <table id="page" > <tr id="header" > <td colspan="2" …

css html-table margin padding
How to set margin of ImageView using code, not xml

I want to add an unknown number of ImageView views to my layout with margin. In XML, I can use …

android margin imageview
How do I center an SVG in a div?

I have an SVG that I am trying to center in a div. The div has a width or 900px. …

css layout svg positioning margin
Why does this CSS margin-top style not work?

I try to add margin values on a div inside another div. All works fine except the top value, it …

html margin css