Алеся 0 Posted May 13 Report Share Posted May 13 Помогите, пожалуйста, разобраться как поместить картинку (серый фотик) на одном уровне со ссылкой. Спасибо! <li> <span> <a href="#"> @@include('./partials/last-news_container/_last-news_container.html', {"link": "Raul bids goodbye in style", "imgPath": "/img/gray camera.jpg"}) </a> </span> </li> В partials код следующий: <div class="unordered_list"> @@link </div> <div class="last-news_unorderedList" style="background-image: url('@@imgPath');"> </div> .last-news_unorderedList { line-height: 28px; font-size: 13px; } .last-news_unorderedList span:after{ content: ""; display: inline-block; width: 20px; height: 15px; position: absolute; background-image: url("./img/gray camera.jpg"); background-repeat: no-repeat; background-size: contain; background-color: white; //z-index: 7; } Quote Link to post Share on other sites
0 Switch74 382 Posted May 14 Report Share Posted May 14 попробуйте top и left добавить в .last-news_unorderedList span:after Quote Link to post Share on other sites
Question
Алеся 0
Помогите, пожалуйста, разобраться как поместить картинку (серый фотик) на одном уровне со ссылкой. Спасибо!
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.