Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show text in vertical format

Tags:

html

css

<span class="helpBtn">HELP</span> help text should stay inside span

  • It should display like this...... enter image description here

  • I have tried text transform but it isn't giving me correct solution.enter image description here

  • Actually i don't want to change text inside span. It should stay inside span like i have shown. It shouldn't be edited.

like image 654
Sameera Liyanage Avatar asked Jan 06 '23 18:01

Sameera Liyanage


1 Answers

Try breaking word in css. If you need more spacing and your words are breaking each 2 or more letters use letter-spacing or just padding.

CSS:

.wrapper {
   position: fixed;
   background-color: green;
   top: 30px;
   left: 0;
   width: 20px;
   border-radius: 0 10px 10px 0;
   color: white;
   font-size: 13px;
   padding: 5px;
   word-wrap: break-word;
}

HTML:

<div class="wrapper">
    HELP
</div>

https://fiddle.jshell.net/1hwd5j7g/

like image 179
Shlizer Avatar answered Jan 18 '23 17:01

Shlizer