Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Still space between elements (buttons) with "margin: 0"?

Tags:

css

http://jsfiddle.net/TRVfh/2/

A picture:
enter image description here

So, right now, there is a little gam in between the two buttons. and I'd like the buttons to share the middle edge, or at least be touching (if they are touching, changing the CSS so it looks like they are sharing an edge isn't hard)

But Margin left / right doesn't appear to do anything. What's going on here?

like image 256
NullVoxPopuli Avatar asked Jan 11 '12 18:01

NullVoxPopuli


1 Answers

The two buttons have a space between them because of the return and the indentation you used to format your HTML.

Just float both containers: http://jsfiddle.net/TRVfh/19/

.redline_changes, .redline_comments{
    margin-left: 0px;
    margin-right: 0px; float: left;
}
like image 118
leopic Avatar answered Sep 22 '22 05:09

leopic