A
A
Alexandra Bashura2015-08-30 20:01:22
Ruby on Rails
Alexandra Bashura, 2015-08-30 20:01:22

How to insert an icon in front of the text?

<nav class="cl-effect-15">
          <a href="https://vk.com/id294237226" data-hover="4MEGA.PRO-Качественная реклама в нового поколения">Качественная реклама в нового поколения</a>

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Alekseiev, 2019-03-15
@9karamba

has_many_through.png
The category has many subcategories. The subcategory has many products.
With has_many :through

V
Vlad Pasechnik, 2015-08-30
@Alex5222304

I hope you understand) https://fortawesome.github.io/Font-Awesome/icons/
....

<nav class="cl-effect-15">
          <img src="path/icon.png"><a href="https://vk.com/id294237226" data-hover="4MEGA.PRO-Качественная реклама в нового поколения">Качественная реклама в нового поколения</a>

V
Vitaliy Orlov, 2015-08-30
@orlov0562

<style>
.i {
    background-image:url(https://laravel.ru/favicon.ico); 
    width:16px; 
    height:16px; 
    display:inline-block;
    vertical-align:bottom;
}
</style>

jsfiddle.net/orlov0562/zo2gm558

A
Alexander Sinitsyn, 2015-08-30
@a_u_sinitsin

<a class="laravel-icon" href="#">Test</a>

.laravel-icon {
    background:url(https://laravel.ru/favicon.ico) no-repeat left center; 
    background-size: 16px; 
    display:inline-block;
    vertical-align:bottom;
    padding-left: 25px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question