css - How to put 18 character text inside fa-fa icon ticket -


how put 18 character text inside fa-fa icon ticket. icon should slanted & text should inside it. , 18 character text (qwertyuiopqwertyui) inside icon. how can using css? style want show:

image description

you can use position:absolute , rotate 45 degrees 18 character text.

span {    position:absolute;    left:30px;    top:45px;    color:yellow;    transform: rotate(-45deg);    font-size:3px;  }
<!doctype html>  <html>  <head>    <meta charset="utf-8">    <meta name="viewport" content="width=device-width">    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfxpqpzzvqgk6tah5pvlgofqnhsod2xbe+qkpxcaflneevoeh3sl0sibvcoqvnn" crossorigin="anonymous">    <title>js bin</title>  </head>  <body>  <i class="fa fa-ticket fa-5x"></i> <span>qwertyuiopqwertyui</span>  </body>  </html>


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -