C
C
coderxx2019-02-10 23:35:38
htaccess
coderxx, 2019-02-10 23:35:38

Is it possible to set the size of an image when added via a pre-element?

li + li::before {
  content: url("../img/angle-right-solid.svg");
}

Through ::before I add an icon from Font Awesome, how to set its size?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
idShura, 2016-07-31
@idShura

This is how you can remove the php extension from the file in the uri. How to completely remove the file name, I think you can guess for yourself.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$

K
kshkld7ck, 2019-02-10
@coderxx

li + li::before {
  content: "";
background:url(".../img/angle-right-solid.svg") no-repeat;
position:absolute;
width:10px;
height:10px;
background-size:100%;
background-position:50% 50%
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question