Reputation: 3773
I have this webapp for ios and in a certain page i have an div with 3 buttons.
this div is centered and it has 460px
inside this div i have 3 links, the first and the last with 153px
and the middle one 154px
the problem is: if i add this 3 links together with no space between it will be ok. but if i add a newline between them it wont apear ok.
like this: http://jsfiddle.net/NicosKaralis/zJxfs/1/
i want the second set off link to be just like the first set of links...
is there any css property that allows me that?
Upvotes: 2
Views: 10438
Reputation: 75379
display:inline-block
adds about 4px
to the left of each element by default. To overcome this, just define a negative margin to the left of each element (margin-left:-4px;
), or just float your elements to the left.
Upvotes: 5