B L Praveen
B L Praveen

Reputation: 2010

Repeat font Icon as background image

Is it possible to repeat a content as the background-image;

I saw many examples which only explains to place the font icon as a background image

Example:

 <ul>
      <li><li>
      <li></li>
 </ul>

  ul {
   background-image: content("\e80b");
   background-repeat:repeat-y;  
  }

Thanks B L Praveen

Upvotes: 1

Views: 1823

Answers (2)

Arturas
Arturas

Reputation: 202

Try something like:

**

.cssClass:before{
    content: "\e84d\e84d\e84d\e84d\e84d\e84d\e84d\e84d....";
}

.cssClass {
    overflow: hidden;
}

**

Upvotes: 2

עדן לייבה
עדן לייבה

Reputation: 1023

Try use the :before selector and the content property:

ul:before {
  content: "\e80b"
}

Upvotes: 0

Related Questions