Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image shifts down when using .ir with inline-block 'a' tag #1125

Closed
thamas opened this issue Jun 16, 2012 · 3 comments
Closed

Image shifts down when using .ir with inline-block 'a' tag #1125

thamas opened this issue Jun 16, 2012 · 3 comments

Comments

@thamas
Copy link

thamas commented Jun 16, 2012

I use .ir as a Compass mixin (squish-text). I applied it to an link. But I had to override the line-height, otherwise the image shifted down. It seems to be the same issue, as mentioned in:

#1108 (comment)

My code looks like this:

a {
    @include squish-text;
    background: url("../images/integralvision.png")no-repeat 0 0 transparent;
    display: inline-block;
    line-height: 30px; // need to override sqish 0 value to be inline
    height: 18px;
    width: 104px;
  }
@drublic
Copy link
Member

drublic commented Jul 8, 2012

@thamas, sorry for the delay on this issue.

As @necolas states in the post you mentioned we should rethink the image-replacement technique before launching the next version of HTML5 BP. Just wanted to let you know that we are aware of the issues and will work on it.

Thanks for the heads up!

@thamas
Copy link
Author

thamas commented Jul 10, 2012

OK. Thanks for the information!

@necolas
Copy link
Member

necolas commented Jul 29, 2012

Will be addressed as part of a wider reassessment of the IR technique. Another approach for your case is to change the vertical-align value instead.

@necolas necolas closed this as completed Jul 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants