Victor Kmita
Victor Kmita

Reputation: 189

Negative margin-right is not behaving correctly in chrome

Hi guys I'm trying to crop an image using another div. Margin -left,-top,-bottom work, but for some reason margin-right does not seem to be working for me on chrome. Any ideas what I should do? I've been trying to figure this out for hours :c

http://knowmad.herokuapp.com/sunapp/10/

Upvotes: 1

Views: 1585

Answers (2)

Patrick Mutwiri
Patrick Mutwiri

Reputation: 1351

Use pixels in margin-right instead of percentages. ie margin-right:20px

Upvotes: 0

KingKongFrog
KingKongFrog

Reputation: 14419

I'm not quite sure why the margin-right isn't working but did you consider using the clip property?

http://webdesignerwall.com/tutorials/5-simple-but-useful-css-properties

Upvotes: 1

Related Questions