简体   繁体   English

如何对齐背景图像?

[英]How to align background-image?

i would like to align orange basket, to the right, cca 5px from the text, and it should change according to lenght of the text. 我想将橙色的篮子对齐到右边,距文本的cca 5px,它应根据文本的长度而变化。 Thanks for your advices. 感谢您的建议。 I am novice. 我是新手。

Page: http://attractivebohemianglass.com/ 网页: http//attractivebohemianglass.com/

You should set to your <a> tag this: 您应该将此设置为<a>标签:

a #ikonka {
  float: right;
  padding: 0;
  width: 80px; 
}
.ClassName{
    background-image:(ImagePath);
    background-position -5px 0px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM