Reputation: 58742
please see http://jsfiddle.net/8mmbA/1/
How to make a separation between coordinate and dimension div , say 10 px. I tried margin and padding. For dimension the margin adds from coordinate 0 (left most part in the page), not from the previous div.
thanks.
bsr.
Upvotes: 0
Views: 68
Reputation: 5391
You need to add float:left to your dimension:
#location #dimension{float:left; margin-left:10px;}
Upvotes: 1
Reputation: 15915
http://jsfiddle.net/easwee/8mmbA/10/
Set it to display:block
else margins won't trigger.
Upvotes: 0